net.sf.saxon.expr
public class RootExpression extends SingleNodeExpression
Method Summary | |
---|---|
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(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 String | noContextMessage()
Customize the error message on type checking |
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.
|
Parameters: pathMap the PathMap to which the expression should be added pathMapNodeSet
Returns: the pathMapNode representing the focus established by this expression, in the case where this expression is the first operand of a path expression or filter expression
Returns: the copy of the original expression
Parameters: th the type hierarchy cache
Returns: Type.NODE
Parameters: context The evaluation context
Returns: the NodeInfo of the first selected element, or null if no element is selected