org.apache.commons.betwixt.expression.Expression |
Known Indirect Subclasses
ClassNameExpression |
ClassNameExpression returns the current class name
of the context bean
|
ConstantExpression |
ConstantExpression represents a constant expression.
|
DynaBeanExpression |
An Expression that gets a property value from a DynaBean. |
EmptyExpression |
EmptyExpression returns the same value as is passed in.
|
IteratorExpression |
IteratorExpression returns an iterator over the current context.
|
MethodExpression |
MethodExpression evaluates a method on the current bean context.
|
StringExpression |
StringExpression returns the current context object as a string.
|
VariableExpression |
VariableExpression represents a variable expression such as
$foo which returns the value of the given variable.
|
|
Class Overview
Expression
represents an arbitrary expression on a bean.
Summary
Public Methods |
abstract
Object
|
evaluate(Context context)
Evaluates the expression on the bean with the given context
and returns the result
|
abstract
void
|
update(Context context, String newValue)
This method is deprecated.
0.5 use Updater instead
|
Public Methods
public
abstract
Object
evaluate
(Context context)
Evaluates the expression on the bean with the given context
and returns the result
Parameters
context
| evaluate against this Context |
Returns
- the value of the expression
public
abstract
void
update
(Context context, String newValue)
This method is deprecated.
0.5 use Updater
instead
Updates the current bean context with a new String value.
This is typically used when parsing XML and updating a beans value
from XML.
Parameters
context
| update this Context |
newValue
| the new value for this expression |