org.apache.commons.jelly.expression
Interface Expression

All Known Implementing Classes:
ExpressionSupport

public interface Expression

Expression represents an arbitrary expression using some pluggable expression language.

Version:
$Revision: 1.4 $
Author:
James Strachan

Method Summary
 java.lang.Object evaluate(JellyContext context)
          Evaluates the expression with the given context and returns the result
 boolean evaluateAsBoolean(JellyContext context)
          Evaluates the expression with the given context coercing the result to be a boolean.
 java.util.Iterator evaluateAsIterator(JellyContext context)
          Evaluates the expression with the given context coercing the result to be an Iterator.
 java.lang.String evaluateAsString(JellyContext context)
          Evaluates the expression with the given context coercing the result to be a String.
 

Method Detail

evaluate

public java.lang.Object evaluate(JellyContext context)
Evaluates the expression with the given context and returns the result

evaluateAsString

public java.lang.String evaluateAsString(JellyContext context)
Evaluates the expression with the given context coercing the result to be a String.

evaluateAsBoolean

public boolean evaluateAsBoolean(JellyContext context)
Evaluates the expression with the given context coercing the result to be a boolean.

evaluateAsIterator

public java.util.Iterator evaluateAsIterator(JellyContext context)
Evaluates the expression with the given context coercing the result to be an Iterator.


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