|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.betwixt.expression.ConstantExpression
ConstantExpression represents a constant expression.
In other words, evaluate(org.apache.commons.betwixt.expression.Context) returns a value independent of the context.
| Field Summary | |
private Object |
value
The value of this expression |
| Constructor Summary | |
ConstantExpression()
Base constructor |
|
ConstantExpression(Object value)
Convenience constructor sets value property. |
|
| Method Summary | |
Object |
evaluate(Context context)
Evaluate expression against given context. |
Object |
getValue()
Gets the constant value of this expression |
void |
setValue(Object value)
Sets the constant value of this expression |
String |
toString()
Returns something useful for logging |
void |
update(Context context,
String newValue)
Do nothing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private Object value
| Constructor Detail |
public ConstantExpression()
public ConstantExpression(Object value)
value property.
value - the Object which is the constant value for this expression| Method Detail |
public Object evaluate(Context context)
evaluate in interface Expressioncontext - evaluate expression against this context
value property
public void update(Context context,
String newValue)
update in interface Expressioncontext - update this ContextnewValue - the new value for this expressionExpressionpublic Object getValue()
public void setValue(Object value)
value - the constant value for this expressionpublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||