|
|||||||||
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
public class RootExpression
An expression whose value is always a set of nodes containing a single node, the document root. Note that the root of a tree is not necessarily a document node.
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.ComputedExpression |
---|
lineNumber, NO_ARGUMENTS, staticProperties |
Constructor Summary | |
---|---|
RootExpression()
|
Method Summary | |
---|---|
int |
computeCardinality()
Specify that the expression returns a singleton |
void |
display(int level,
NamePool pool)
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. |
NodeInfo |
getNode(XPathContext context)
Return the first element selected by this Expression |
int |
hashCode()
get HashCode for comparing two expressions |
Expression |
simplify()
Simplify an expression |
Methods inherited from class net.sf.saxon.expr.SingleNodeExpression |
---|
analyze, effectiveBooleanValue, evaluateItem, getItemType, iterate |
Methods inherited from class net.sf.saxon.expr.ComputedExpression |
---|
computeDependencies, computeSpecialProperties, computeStaticProperties, dynamicError, evaluateAsString, getCardinality, getDependencies, getLineNumber, getSpecialProperties, getSubExpressions, markTailFunctionCalls, promote, setLineNumber, typeError |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RootExpression()
Method Detail |
---|
public Expression simplify() throws XPathException
simplify
in interface Expression
simplify
in class ComputedExpression
XPathException
- if an error is discovered during expression
rewritingpublic boolean equals(Object other)
equals
in class Object
public final int computeCardinality()
computeCardinality
in class SingleNodeExpression
public int hashCode()
hashCode
in class Object
public NodeInfo getNode(XPathContext context) throws XPathException
getNode
in class SingleNodeExpression
context
- The evaluation context
XPathException
public int getIntrinsicDependencies()
getIntrinsicDependencies
in class SingleNodeExpression
public void display(int level, NamePool pool)
level
- indentation level for this expression
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |