org.apache.commons.jelly.expression
Class ExpressionSupport

java.lang.Object
  |
  +--org.apache.commons.jelly.expression.ExpressionSupport
All Implemented Interfaces:
Expression
Direct Known Subclasses:
BeanShellExpression, BSFExpression, CompositeExpression, ConstantExpression, JexlExpression, XPathExpression, XPathPatternExpression

public abstract class ExpressionSupport
extends java.lang.Object
implements Expression

ExpressionSupport an abstract base class for Expression implementations which provides default implementations of some of the typesafe evaluation methods.

Version:
$Revision: 1.6 $
Author:
James Strachan

Field Summary
protected static java.util.Iterator EMPTY_ITERATOR
           
 
Constructor Summary
ExpressionSupport()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jelly.expression.Expression
evaluate
 

Field Detail

EMPTY_ITERATOR

protected static final java.util.Iterator EMPTY_ITERATOR
Constructor Detail

ExpressionSupport

public ExpressionSupport()
Method Detail

evaluateAsString

public java.lang.String evaluateAsString(JellyContext context)
Description copied from interface: Expression
Evaluates the expression with the given context coercing the result to be a String.
Specified by:
evaluateAsString in interface Expression

evaluateAsBoolean

public boolean evaluateAsBoolean(JellyContext context)
Description copied from interface: Expression
Evaluates the expression with the given context coercing the result to be a boolean.
Specified by:
evaluateAsBoolean in interface Expression

evaluateAsIterator

public java.util.Iterator evaluateAsIterator(JellyContext context)
Description copied from interface: Expression
Evaluates the expression with the given context coercing the result to be an Iterator.
Specified by:
evaluateAsIterator in interface Expression


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