public class

EmptyExpression

extends Object
implements Expression
java.lang.Object
   ↳ org.apache.commons.betwixt.expression.EmptyExpression

Class Overview

EmptyExpression returns the same value as is passed in.

See evaluate(Context).

Summary

Public Constructors
EmptyExpression()
Should this be private?
Public Methods
Object evaluate(Context context)
Return the bean we're evaluating.
static EmptyExpression getInstance()
Gets the singleton instance.
String toString()
Return something useful for logging.
void update(Context context, String newValue)
Do nothing
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.commons.betwixt.expression.Expression

Public Constructors

public EmptyExpression ()

Should this be private?

Public Methods

public Object evaluate (Context context)

Return the bean we're evaluating.

Parameters
context evaluate against this Context
Returns
  • the value of the expression
See Also

public static EmptyExpression getInstance ()

Gets the singleton instance.

Returns
  • the EmptyExpression singleton.

public String toString ()

Return something useful for logging.

Returns
  • short name for this class

public void update (Context context, String newValue)

Do nothing

Parameters
context update this Context
newValue the new value for this expression
See Also