|
||||||||||
| 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 | |
|---|---|
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()
|
| 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 name| Method Detail |
|---|
public QName getVariableName()
public String toString()
toString in class Objectpublic boolean isContextDependent()
Expression
isContextDependent in class Expressionpublic boolean computeContextDependent()
Expression
computeContextDependent in class Expressionpublic Object compute(EvalContext context)
Expression
compute in class Expressioncontext - evaluation context
public Object computeValue(EvalContext context)
computeValue in class Expressioncontext - 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 | |||||||||