public final class ContextNodeExpression extends SingletonExpression
staticContext
Constructor | Description |
---|---|
ContextNodeExpression() |
Modifier and Type | Method | Description |
---|---|---|
void |
display(int level) |
Diagnostic print of expression structure
|
int |
getDependencies() |
Determine which aspects of the context the expression depends on.
|
NodeInfo |
getNode(Context context) |
Return the node selected by this expression.
|
Expression |
reduce(int dependencies,
Context context) |
Perform a partial evaluation of the expression, by eliminating specified dependencies
on the context.
|
containsReferences, evaluateAsNumber, getStaticContext, indent, make, setStaticContext, simplify, usesCurrent
evaluate, getDataType, outputStringValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsString, isContextDocumentNodeSet, selectFirst
public NodeInfo getNode(Context context) throws XPathException
getNode
in class SingletonExpression
context
- The context for the evaluationXPathException
public int getDependencies()
getDependencies
in class Expression
public Expression reduce(int dependencies, Context context) throws XPathException
reduce
in class Expression
dependencies
- The dependencies to be removedcontext
- The context to be used for the partial evaluationXPathException
public void display(int level)
display
in class Expression