public final class ContextNodeExpression extends SingletonExpression
staticContext| Constructor and Description |
|---|
ContextNodeExpression() |
| Modifier and Type | Method and 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.
|
enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsString, isContextDocumentNodeSet, selectFirstevaluate, getDataType, outputStringValuecontainsReferences, evaluateAsNumber, getStaticContext, indent, make, setStaticContext, simplify, usesCurrentpublic NodeInfo getNode(Context context) throws XPathException
getNode in class SingletonExpressioncontext - The context for the evaluationXPathExceptionpublic int getDependencies()
getDependencies in class Expressionpublic Expression reduce(int dependencies, Context context) throws XPathException
reduce in class Expressiondependencies - The dependencies to be removedcontext - The context to be used for the partial evaluationXPathExceptionpublic void display(int level)
display in class Expression