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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_ITERATOR
protected static final java.util.Iterator EMPTY_ITERATOR
ExpressionSupport
public ExpressionSupport()
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.