|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.betwixt.expression.VariableExpression
public class VariableExpression
VariableExpression
represents a variable expression such as
$foo
which returns the value of the given variable.
Constructor Summary | |
---|---|
VariableExpression()
Base constructor |
|
VariableExpression(java.lang.String variableName)
Convenience constructor sets VariableName property |
Method Summary | |
---|---|
java.lang.Object |
evaluate(Context context)
Return the value of a context variable. |
java.lang.String |
getVariableName()
Gets the variable name |
void |
setVariableName(java.lang.String variableName)
Sets the variable name |
java.lang.String |
toString()
Returns something useful for logging |
void |
update(Context context,
java.lang.String newValue)
Do nothing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VariableExpression()
public VariableExpression(java.lang.String variableName)
VariableName
property
variableName
- the name of the context variable
whose value will be returned by an evaluationMethod Detail |
---|
public java.lang.Object evaluate(Context context)
evaluate
in interface Expression
context
- evaluate against this context
VariableName
propertypublic java.lang.String getVariableName()
public void setVariableName(java.lang.String variableName)
variableName
- the name of the context variable
whose value will be returned by an evaluationpublic void update(Context context, java.lang.String newValue)
update
in interface Expression
context
- update this Context
newValue
- the new value for this expressionExpression
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |