Package com.day.cq.wcm.foundation
Class ELEvaluator
- java.lang.Object
-
- com.day.cq.wcm.foundation.ELEvaluator
-
public class ELEvaluator extends java.lang.Object
ELEvaluator
implements an expression language evaluator based onExpressionEvaluator
.
-
-
Constructor Summary
Constructors Constructor Description ELEvaluator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
evaluate(java.lang.String expr, SlingHttpServletRequest request, PageContext pageContext)
Evaluates the given expression.
-
-
-
Method Detail
-
evaluate
public static java.lang.String evaluate(java.lang.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.
-
-