| |
|
| java.lang.Object org.apache.commons.betwixt.expression.VariableExpression
VariableExpression | public class VariableExpression implements Expression(Code) | | VariableExpression represents a variable expression such as
$foo which returns the value of the given variable.
author: James Strachan version: $Revision: 438373 $ |
VariableExpression | public VariableExpression()(Code) | | Base constructor
|
VariableExpression | public VariableExpression(String variableName)(Code) | | Convenience constructor sets VariableName property
Parameters: variableName - the name of the context variable whose value will be returned by an evaluation |
evaluate | public Object evaluate(Context context)(Code) | | Return the value of a context variable.
Parameters: context - evaluate against this context the value of the context variable named by the VariableName property |
getVariableName | public String getVariableName()(Code) | | Gets the variable name
the name of the context variable whose value will be returned by an evaluation |
setVariableName | public void setVariableName(String variableName)(Code) | | Sets the variable name
Parameters: variableName - the name of the context variable whose value will be returned by an evaluation |
toString | public String toString()(Code) | | Returns something useful for logging
something useful for logging |
|
|
|