public interface JexlExpression
 This simple interface provides access to the underlying textual expression through
 getSourceText().
 
An expression is different than a script - it is simply a reference to a single expression, not to multiple statements. This implies 'if','for','while','var' and blocks '{'... '}'are not allowed in expressions.
Do not create classes that implement this interface; delegate or compose instead.
| Modifier and Type | Method and Description | 
|---|---|
| Callable<Object> | callable(JexlContext context)Creates a Callable from this expression. | 
| Object | evaluate(JexlContext context)Evaluates the expression with the variables contained in the
 supplied  JexlContext. | 
| String | getParsedText()Recreates the source text of this expression from the internal syntactic tree. | 
| String | getSourceText()Returns the source text of this expression. | 
Object evaluate(JexlContext context)
JexlContext.context - A JexlContext containing variables.JexlException - on any errorString getSourceText()
String getParsedText()
Callable<Object> callable(JexlContext context)
This allows to submit it to an executor pool and provides support for asynchronous calls.
The interpreter will handle interruption/cancellation gracefully if needed.
context - the contextCopyright © 2001–2021 The Apache Software Foundation. All rights reserved.