org.apache.commons.jelly.expression.jexl
Class JexlExpression

java.lang.Object
  extended by org.apache.commons.jelly.expression.ExpressionSupport
      extended by org.apache.commons.jelly.expression.jexl.JexlExpression
All Implemented Interfaces:
Expression

public class JexlExpression
extends ExpressionSupport

Represents a Jexl expression which fully supports the Expression Language in JSTL and JSP along with some extra features like object method invocation.

Version:
$Revision: 1807798 $
Author:
James Strachan

Field Summary
private  org.apache.commons.jexl.Expression expression
          The Jexl expression object
private static org.apache.commons.logging.Log log
          The Log to which logging calls will be made.
 
Fields inherited from class org.apache.commons.jelly.expression.ExpressionSupport
EMPTY_ITERATOR
 
Constructor Summary
JexlExpression(org.apache.commons.jexl.Expression expression)
           
 
Method Summary
 java.lang.Object evaluate(JellyContext context)
          Evaluates the expression with the given context and returns the result
 java.lang.String getExpressionText()
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.commons.jelly.expression.ExpressionSupport
evaluateAsBoolean, evaluateAsIterator, evaluateAsString, evaluateRecurse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
The Log to which logging calls will be made.


expression

private org.apache.commons.jexl.Expression expression
The Jexl expression object

Constructor Detail

JexlExpression

public JexlExpression(org.apache.commons.jexl.Expression expression)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getExpressionText

public java.lang.String getExpressionText()
Returns:
the textual representation of this expression

evaluate

public java.lang.Object evaluate(JellyContext context)
Description copied from interface: Expression
Evaluates the expression with the given context and returns the result