|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.ri.compiler.Expression
org.apache.commons.jxpath.ri.compiler.VariableReference
public class VariableReference
An element of the compile tree holding a variable reference.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.jxpath.ri.compiler.Expression |
---|
Expression.PointerIterator, Expression.ValueIterator |
Field Summary |
---|
Fields inherited from class org.apache.commons.jxpath.ri.compiler.Expression |
---|
NOT_A_NUMBER, ONE, ZERO |
Constructor Summary | |
---|---|
VariableReference(QName varName)
Create a new VariableReference. |
Method Summary | |
---|---|
java.lang.Object |
compute(EvalContext context)
Evaluates the expression. |
boolean |
computeContextDependent()
Implemented by subclasses and result is cached by isContextDependent() |
java.lang.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. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.commons.jxpath.ri.compiler.Expression |
---|
iterate, iteratePointers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VariableReference(QName varName)
varName
- variable nameMethod Detail |
---|
public QName getVariableName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isContextDependent()
Expression
isContextDependent
in class Expression
public boolean computeContextDependent()
Expression
computeContextDependent
in class Expression
public java.lang.Object compute(EvalContext context)
Expression
compute
in class Expression
context
- evaluation context
public java.lang.Object computeValue(EvalContext context)
computeValue
in class Expression
context
- EvalContext against which to compute the variable's value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |