Class ExpressionEvaluatorManager
- java.lang.Object
-
- org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager
-
public class ExpressionEvaluatorManager extends Object
A conduit to the JSTL EL. Based on...
An implementation of the ExpressionEvaluatorManager called for by the JSTL rev1 draft. This class is responsible for delegating a request for expression evaluating to the particular, "active" ExpressionEvaluator for the given point in the PageContext object passed in.
- Author:
- Shawn Bayern
-
-
Field Summary
Fields Modifier and Type Field Description static StringEVALUATOR_CLASS
-
Constructor Summary
Constructors Constructor Description ExpressionEvaluatorManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Objectcoerce(Object value, Class<?> classe)Performs a type conversion according to the EL's rules.static Objectevaluate(String attributeName, String expression, Class expectedType, jakarta.servlet.jsp.PageContext pageContext)Invokes the evaluate() method on the "active" ExpressionEvaluator for the given pageContext.static Objectevaluate(String attributeName, String expression, Class expectedType, jakarta.servlet.jsp.tagext.Tag tag, jakarta.servlet.jsp.PageContext pageContext)Invokes the evaluate() method on the "active" ExpressionEvaluator for the given pageContext.static ExpressionEvaluatorgetEvaluatorByName(String name)Gets an ExpressionEvaluator from the cache, or seeds the cache if we haven't seen a particular ExpressionEvaluator before.
-
-
-
Field Detail
-
EVALUATOR_CLASS
public static final String EVALUATOR_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
evaluate
public static Object evaluate(String attributeName, String expression, Class expectedType, jakarta.servlet.jsp.tagext.Tag tag, jakarta.servlet.jsp.PageContext pageContext) throws jakarta.servlet.jsp.JspException
Invokes the evaluate() method on the "active" ExpressionEvaluator for the given pageContext.- Throws:
jakarta.servlet.jsp.JspException
-
evaluate
public static Object evaluate(String attributeName, String expression, Class expectedType, jakarta.servlet.jsp.PageContext pageContext) throws jakarta.servlet.jsp.JspException
Invokes the evaluate() method on the "active" ExpressionEvaluator for the given pageContext.- Throws:
jakarta.servlet.jsp.JspException
-
getEvaluatorByName
public static ExpressionEvaluator getEvaluatorByName(String name) throws jakarta.servlet.jsp.JspException
Gets an ExpressionEvaluator from the cache, or seeds the cache if we haven't seen a particular ExpressionEvaluator before.- Throws:
jakarta.servlet.jsp.JspException
-
-