Class ExpressionUtil


  • public class ExpressionUtil
    extends java.lang.Object
    Helper functions for working with EL expressions.
    • Constructor Summary

      Constructors 
      Constructor Description
      ExpressionUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.el.ValueExpression createValueExpression​(javax.servlet.jsp.PageContext pageContext, java.lang.String expression, java.lang.Class<?> expectedType)
      Create a value expression.
      static javax.el.ExpressionFactory getExpressionFactory​(javax.servlet.jsp.PageContext pageContext)
      Return the JSP's ExpressionFactory.
      • Methods inherited from class java.lang.Object

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

      • ExpressionUtil

        public ExpressionUtil()
    • Method Detail

      • createValueExpression

        public static javax.el.ValueExpression createValueExpression​(javax.servlet.jsp.PageContext pageContext,
                                                                     java.lang.String expression,
                                                                     java.lang.Class<?> expectedType)
        Create a value expression.
        Parameters:
        pageContext - the context in which the expression will be parsed
        expression - the expression
        expectedType - the expected type of result
        Returns:
        a parsed expression
      • getExpressionFactory

        public static javax.el.ExpressionFactory getExpressionFactory​(javax.servlet.jsp.PageContext pageContext)
        Return the JSP's ExpressionFactory.
        Parameters:
        pageContext - the context for the JSP
        Returns:
        the ExpressionFactory to use for EL expressions in that JSP