|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.betwixt.expression.EmptyExpression
EmptyExpression
returns the same value as is passed in.
See evaluate(org.apache.commons.betwixt.expression.Context)
.
Field Summary | |
---|---|
private static EmptyExpression |
singleton
Don't need more than one EmptyExpression |
Constructor Summary | |
---|---|
EmptyExpression()
Should this be private? |
Method Summary | |
---|---|
java.lang.Object |
evaluate(Context context)
Return the bean we're evaluating. |
static EmptyExpression |
getInstance()
Gets the singleton instance. |
java.lang.String |
toString()
Return 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 |
Field Detail |
private static final EmptyExpression singleton
EmptyExpression
Constructor Detail |
public EmptyExpression()
Method Detail |
public static EmptyExpression getInstance()
public java.lang.Object evaluate(Context context)
evaluate
in interface Expression
context
- evaluate against this Context
Expression
public 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()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |