Class ExpressionEvaluatorManager
java.lang.Object
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectPerforms a type conversion according to the EL's rules.static Objectevaluate(String attributeName, String expression, Class expectedType, PageContext pageContext) Invokes the evaluate() method on the "active" ExpressionEvaluator for the given pageContext.static Objectevaluate(String attributeName, String expression, Class expectedType, Tag tag, 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 Details
-
EVALUATOR_CLASS
- See Also:
-
-
Constructor Details
-
ExpressionEvaluatorManager
public ExpressionEvaluatorManager()
-
-
Method Details
-
evaluate
public static Object evaluate(String attributeName, String expression, Class expectedType, Tag tag, PageContext pageContext) throws JspException Invokes the evaluate() method on the "active" ExpressionEvaluator for the given pageContext.- Throws:
JspException
-
evaluate
public static Object evaluate(String attributeName, String expression, Class expectedType, PageContext pageContext) throws JspException Invokes the evaluate() method on the "active" ExpressionEvaluator for the given pageContext.- Throws:
JspException
-
getEvaluatorByName
Gets an ExpressionEvaluator from the cache, or seeds the cache if we haven't seen a particular ExpressionEvaluator before.- Throws:
JspException
-
coerce
Performs a type conversion according to the EL's rules.- Throws:
JspException
-