org.apache.commons.betwixt.expression
Class IteratorExpression

java.lang.Object
  |
  +--org.apache.commons.betwixt.expression.IteratorExpression
All Implemented Interfaces:
Expression

public class IteratorExpression
extends java.lang.Object
implements Expression

IteratorExpression returns an iterator over the current context.

Version:
$Revision: 1.8 $
Author:
James Strachan

Constructor Summary
IteratorExpression(org.apache.commons.betwixt.expression.Expression expression)
          Construct IteratorExpression using given expression for initial evaluation.
 
Method Summary
 java.lang.Object evaluate(org.apache.commons.betwixt.expression.Context context)
          Returns an interator over the current context
 java.lang.String toString()
          Returns something useful for logging
 void update(org.apache.commons.betwixt.expression.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
 

Constructor Detail

IteratorExpression

public IteratorExpression(org.apache.commons.betwixt.expression.Expression expression)
Construct IteratorExpression using given expression for initial evaluation.

Parameters:
expression - this expression will be evaluated and the result converted to an iterator.
Method Detail

evaluate

public java.lang.Object evaluate(org.apache.commons.betwixt.expression.Context context)
Returns an interator over the current context

Specified by:
evaluate in interface Expression
Parameters:
context - evaluate against this Context
Returns:
the value of the expression
See Also:
Expression

update

public void update(org.apache.commons.betwixt.expression.Context context,
                   java.lang.String newValue)
Do nothing

Specified by:
update in interface Expression
Parameters:
context - update this Context
newValue - the new value for this expression
See Also:
Expression

toString

public java.lang.String toString()
Returns something useful for logging

Overrides:
toString in class java.lang.Object
Returns:
string useful for logging


Copyright © 2002-2004 The Apache Software Foundation. All Rights Reserved.