Class ELEvaluator


  • public class ELEvaluator
    extends java.lang.Object
    ELEvaluator implements an expression language evaluator based on ExpressionEvaluator.
    • 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ELEvaluator

        public ELEvaluator()
    • 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.