public class

IteratorExpression

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

Class Overview

IteratorExpression returns an iterator over the current context.

Summary

Public Constructors
IteratorExpression(Expression expression)
Construct IteratorExpression using given expression for initial evaluation.
Public Methods
Object evaluate(Context context)
Returns an interator over the current context
String toString()
Returns 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 IteratorExpression (Expression expression)

Construct IteratorExpression using given expression for initial evaluation.

Parameters
expression this expression will be evaluated and the result converted to an iterator.

Public Methods

public Object evaluate (Context context)

Returns an interator over the current context

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

public String toString ()

Returns something useful for logging

Returns
  • string useful for logging

public void update (Context context, String newValue)

Do nothing

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