|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.betwixt.expression.ConstantExpression
public class ConstantExpression
ConstantExpression represents a constant expression.
In other words, evaluate(org.apache.commons.betwixt.expression.Context) returns a value independent of the context.
| Constructor Summary | |
|---|---|
ConstantExpression()
Base constructor |
|
ConstantExpression(java.lang.Object value)
Convenience constructor sets value property. |
|
| Method Summary | |
|---|---|
java.lang.Object |
evaluate(Context context)
Evaluate expression against given context. |
java.lang.Object |
getValue()
Gets the constant value of this expression |
void |
setValue(java.lang.Object value)
Sets the constant value of this expression |
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 ConstantExpression()
public ConstantExpression(java.lang.Object value)
value property.
value - the Object which is the constant value for this expression| Method Detail |
|---|
public java.lang.Object evaluate(Context context)
evaluate in interface Expressioncontext - evaluate expression against this context
value property
public void update(Context context,
java.lang.String newValue)
update in interface Expressioncontext - update this ContextnewValue - the new value for this expressionExpressionpublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value - the constant value for this expressionpublic 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 | |||||||||