|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Represents a single JEXL expression. This simple interface provides access to the underlying expression through getExpression(), and it provides hooks to add a pre- and post- expression resolver.
An expression is different than a script - it is simply a reference of an expression.
| Method Summary | |
void |
addPostResolver(JexlExprResolver resolver)
allows addition of a resolver to allow custom interdiction of expression evaluation |
void |
addPreResolver(JexlExprResolver resolver)
allows addition of a resolver to allow custom interdiction of expression evaluation |
java.lang.Object |
evaluate(JexlContext context)
Evaluates the expression with the variables contained in the supplied JexlContext. |
java.lang.String |
getExpression()
Returns the JEXL expression this Expression was created with. |
| Method Detail |
public java.lang.Object evaluate(JexlContext context)
throws java.lang.Exception
JexlContext.
context - A JexlContext containing variables.
java.lang.Exceptionpublic java.lang.String getExpression()
public void addPreResolver(JexlExprResolver resolver)
resolver - resolver to be called before Jexl expression evaluatedpublic void addPostResolver(JexlExprResolver resolver)
resolver - resolver to be called if Jexl expression evaluated to null
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||