Class ExpressionUtil
java.lang.Object
org.apache.taglibs.standard.tag.el.core.ExpressionUtil
Contains some static utilities to facilitate common forms of expression evaluation.
- Author:
- Shawn Bayern
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectevalNotNull(String tagName, String attributeName, String expression, Class expectedType, Tag tag, PageContext pageContext) Evaluates an expression if present, but does not allow the expression to evaluate to 'null', throwing a NullAttributeException if it does.
-
Constructor Details
-
ExpressionUtil
public ExpressionUtil()
-
-
Method Details
-
evalNotNull
public static Object evalNotNull(String tagName, String attributeName, String expression, Class expectedType, Tag tag, PageContext pageContext) throws JspException Evaluates an expression if present, but does not allow the expression to evaluate to 'null', throwing a NullAttributeException if it does. The function can return null, however, if the expression itself is null.- Throws:
JspException
-