Package com.day.cq.wcm.foundation
Class ELEvaluator
java.lang.Object
com.day.cq.wcm.foundation.ELEvaluator
ELEvaluator implements an expression language evaluator based on
ExpressionEvaluator.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringevaluate(String expr, SlingHttpServletRequest request, PageContext pageContext) Evaluates the given expression.
-
Constructor Details
-
ELEvaluator
public ELEvaluator()
-
-
Method Details
-
evaluate
public static String evaluate(String expr, SlingHttpServletRequest request, PageContext pageContext) Evaluates the given expression. If an error occurs while evaluating the expression, then the expression is returned as is and the error is logged as warning.- Parameters:
expr- the expression.request- the current request.pageContext- the current page context.- Returns:
- the evaluated expression.
-