public class RootExpression extends SingleNodeExpression
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
Constructor and Description |
---|
RootExpression() |
Modifier and Type | Method and Description |
---|---|
int |
computeCardinality()
Specify that the expression returns a singleton
|
void |
display(int level,
NamePool pool,
PrintStream out)
Diagnostic print of expression structure
|
boolean |
equals(Object other)
Is this expression the same as another expression?
|
int |
getIntrinsicDependencies()
Determine which aspects of the context the expression depends on.
|
ItemType |
getItemType(TypeHierarchy th)
Determine the data type of the items returned by this expression
|
NodeInfo |
getNode(XPathContext context)
Return the first element selected by this Expression
|
int |
hashCode()
get HashCode for comparing two expressions
|
Expression |
simplify(StaticContext env)
Simplify an expression
|
computeSpecialProperties, effectiveBooleanValue, evaluateItem, iterate, optimize, typeCheck
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, dynamicError, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterateSubExpressions, markTailFunctionCalls, process, promote, resetStaticProperties, setLocationId, setParentExpression, suppressValidation, typeError, typeError
public Expression simplify(StaticContext env) throws StaticError
simplify
in interface Expression
simplify
in class ComputedExpression
StaticError
- if an error is discovered during expression
rewritingpublic boolean equals(Object other)
public final int computeCardinality()
computeCardinality
in class SingleNodeExpression
public ItemType getItemType(TypeHierarchy th)
getItemType
in interface Expression
getItemType
in class SingleNodeExpression
th
- public int hashCode()
public NodeInfo getNode(XPathContext context) throws XPathException
getNode
in class SingleNodeExpression
context
- The evaluation contextXPathException
public int getIntrinsicDependencies()
getIntrinsicDependencies
in class SingleNodeExpression
public void display(int level, NamePool pool, PrintStream out)
level
- indentation level for this expressionpool
- NamePool used to expand any names appearing in the expressionout
- Output destination