public class IteratorExpression extends Object implements Expression
IteratorExpression
returns an iterator over the current context.
Modifier and Type | Field and Description |
---|---|
private Expression |
expression
Use this
Expression to perform initial evaluation |
Constructor and Description |
---|
IteratorExpression(Expression expression)
Construct
IteratorExpression using given expression for initial evaluation. |
private Expression expression
Expression
to perform initial evaluationpublic IteratorExpression(Expression expression)
IteratorExpression
using given expression for initial evaluation.expression
- this expression will be evaluated and the result converted to an
iterator.public Object evaluate(Context context)
evaluate
in interface Expression
context
- evaluate against this Context
Expression
public void update(Context context, String newValue)
update
in interface Expression
context
- update this Context
newValue
- the new value for this expressionExpression