public class RootExpression extends SingleNodeExpression
EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, PUSH_SELECTION, staticProperties, WATCH_METHOD
Constructor and Description |
---|
RootExpression() |
Modifier and Type | Method and Description |
---|---|
PathMap.PathMapNodeSet |
addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet)
Add a representation of this expression to a PathMap.
|
int |
computeCardinality()
Specify that the expression returns a singleton
|
Expression |
copy()
Copy an expression.
|
boolean |
equals(java.lang.Object other)
Is this expression the same as another expression?
|
void |
explain(ExpressionPresenter destination)
Diagnostic print of expression structure.
|
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
|
protected java.lang.String |
noContextMessage()
Customize the error message on type checking
|
java.lang.String |
toString()
The toString() method for an expression attempts to give a representation of the expression
in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath.
|
computeSpecialProperties, effectiveBooleanValue, evaluateItem, iterate, optimize, typeCheck
adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getDependencies, getEvaluationMethod, getExecutable, getExpressionName, getHostLanguage, getImplementationMethod, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, iterateSameFocusSubExpressions, iterateSubExpressions, markTailFunctionCalls, process, promote, replaceSubExpression, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, simplify, staticTypeCheck, suppressValidation, typeError
protected java.lang.String noContextMessage()
noContextMessage
in class SingleNodeExpression
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public final int computeCardinality()
computeCardinality
in class SingleNodeExpression
StaticProperty.ALLOWS_ZERO_OR_ONE
,
StaticProperty.EXACTLY_ONE
, StaticProperty.ALLOWS_ONE_OR_MORE
,
StaticProperty.ALLOWS_ZERO_OR_MORE
public ItemType getItemType(TypeHierarchy th)
getItemType
in class SingleNodeExpression
th
- the type hierarchy cachepublic int hashCode()
hashCode
in class java.lang.Object
public NodeInfo getNode(XPathContext context) throws XPathException
getNode
in class SingleNodeExpression
context
- The evaluation contextXPathException
public int getIntrinsicDependencies()
getIntrinsicDependencies
in class SingleNodeExpression
public Expression copy()
copy
in class Expression
public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet)
addToPathMap
in class Expression
pathMap
- the PathMap to which the expression should be addedpathMapNodeSet
- public java.lang.String toString()
toString
in class Expression
public void explain(ExpressionPresenter destination)
explain
in class Expression
destination
- the expression presenter used to display the structure