public class MockExpressionEvaluator extends ExpressionEvaluator
ExpressionEvaluator
interface, delegating to the
Jakarta JSTL ExpressionEvaluatorManager.
Used for testing the web framework; only necessary for testing applications when testing custom JSP tags.
Note that the Jakarta JSTL implementation (jstl.jar, standard.jar) has to be available on the class path to use this expression evaluator.
ExpressionEvaluatorManager
Constructor and Description |
---|
MockExpressionEvaluator(PageContext pageContext)
Create a new MockExpressionEvaluator for the given PageContext.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
doEvaluate(java.lang.String expression,
java.lang.Class expectedType,
FunctionMapper functionMapper) |
java.lang.Object |
evaluate(java.lang.String expression,
java.lang.Class expectedType,
VariableResolver variableResolver,
FunctionMapper functionMapper) |
Expression |
parseExpression(java.lang.String expression,
java.lang.Class expectedType,
FunctionMapper functionMapper) |
public MockExpressionEvaluator(PageContext pageContext)
pageContext
- the JSP PageContext to run inpublic Expression parseExpression(java.lang.String expression, java.lang.Class expectedType, FunctionMapper functionMapper) throws ELException
parseExpression
in class ExpressionEvaluator
ELException
public java.lang.Object evaluate(java.lang.String expression, java.lang.Class expectedType, VariableResolver variableResolver, FunctionMapper functionMapper) throws ELException
evaluate
in class ExpressionEvaluator
ELException
protected java.lang.Object doEvaluate(java.lang.String expression, java.lang.Class expectedType, FunctionMapper functionMapper) throws ELException
ELException