class AttributeReference extends SingletonExpression
staticContext| Constructor and Description |
|---|
AttributeReference(int fingerprint)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindParentNode(NodeInfo node)
Bind the reference to a particular node
|
void |
display(int level)
Diagnostic print of expression structure
|
boolean |
evaluateAsBoolean(Context context)
Evaluate as a boolean.
|
java.lang.String |
evaluateAsString(Context context)
Evaluate as a string.
|
int |
getDependencies()
Determine which aspects of the context the expression depends on.
|
NodeInfo |
getNode(Context context)
Return the relevant attribute node
|
Expression |
reduce(int dependencies,
Context context)
Perform a partial evaluation of the expression, by eliminating specified dependencies
on the context.
|
enumerate, evaluateAsNodeSet, isContextDocumentNodeSet, selectFirstevaluate, getDataType, outputStringValuecontainsReferences, evaluateAsNumber, getStaticContext, indent, make, setStaticContext, simplify, usesCurrentpublic void bindParentNode(NodeInfo node)
public NodeInfo getNode(Context context) throws XPathException
getNode in class SingletonExpressioncontext - the evaluation contextXPathExceptionpublic boolean evaluateAsBoolean(Context context) throws XPathException
evaluateAsBoolean in class SingletonExpressioncontext - The context in which the expression is to be evaluatedXPathExceptionpublic java.lang.String evaluateAsString(Context context) throws XPathException
evaluateAsString in class SingletonExpressioncontext - The context in which the expression is to be evaluatedXPathExceptionpublic 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