public class VariableReference extends Expression
Expression.PointerIterator, Expression.ValueIterator
NOT_A_NUMBER, ONE, ZERO
Constructor and Description |
---|
VariableReference(QName varName)
Create a new VariableReference.
|
Modifier and Type | Method and Description |
---|---|
Object |
compute(EvalContext context)
Evaluates the expression.
|
boolean |
computeContextDependent()
Implemented by subclasses and result is cached by isContextDependent()
|
Object |
computeValue(EvalContext context)
Returns the value of the variable.
|
QName |
getVariableName()
Get the variable name.
|
boolean |
isContextDependent()
Returns true if this expression should be re-evaluated
each time the current position in the context changes.
|
String |
toString() |
iterate, iteratePointers
public VariableReference(QName varName)
varName
- variable namepublic QName getVariableName()
public boolean isContextDependent()
Expression
isContextDependent
in class Expression
public boolean computeContextDependent()
Expression
computeContextDependent
in class Expression
public Object compute(EvalContext context)
Expression
compute
in class Expression
context
- evaluation contextpublic Object computeValue(EvalContext context)
computeValue
in class Expression
context
- EvalContext against which to compute the variable's value.Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.