|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.saxon.expr.ComputedExpression
net.sf.saxon.expr.SingleNodeExpression
net.sf.saxon.expr.RootExpression
An expression whose value is always a set of nodes containing a single node, the document root. This corresponds to the XPath Expression "/", including the implicit "/" at the start of a path expression with a leading "/".
| Field Summary |
| Fields inherited from class net.sf.saxon.expr.ComputedExpression |
locationId, staticProperties |
| Fields inherited from interface net.sf.saxon.expr.Expression |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
| Constructor Summary | |
RootExpression()
|
|
| Method Summary | |
int |
computeCardinality()
Specify that the expression returns a singleton |
void |
display(int level,
java.io.PrintStream out,
Configuration config)
Diagnostic print of expression structure |
boolean |
equals(java.lang.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 |
| Methods inherited from class net.sf.saxon.expr.SingleNodeExpression |
computeSpecialProperties, effectiveBooleanValue, evaluateItem, iterate, optimize, typeCheck |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RootExpression()
| Method Detail |
public boolean equals(java.lang.Object other)
public final int computeCardinality()
computeCardinality in class SingleNodeExpressionpublic ItemType getItemType(TypeHierarchy th)
getItemType in interface ExpressiongetItemType in class SingleNodeExpressionth -
public int hashCode()
public NodeInfo getNode(XPathContext context)
throws XPathException
getNode in class SingleNodeExpressioncontext - The evaluation context
XPathExceptionpublic int getIntrinsicDependencies()
getIntrinsicDependencies in class SingleNodeExpression
public void display(int level,
java.io.PrintStream out,
Configuration config)
level - indentation level for this expressionout - Output destinationconfig -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||