当前页面:
在线文档首页 >
Spring Framework 2.1.0 API 文档英文版
MockExpressionEvaluator (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.mock.web
Class MockExpressionEvaluator
java.lang.Object
javax.servlet.jsp.el.ExpressionEvaluator
org.springframework.mock.web.MockExpressionEvaluator
public class MockExpressionEvaluator
- extends ExpressionEvaluator
Mock implementation of the JSP 2.0 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.
- Since:
- 1.1.5
- Author:
- Juergen Hoeller
- See Also:
ExpressionEvaluatorManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockExpressionEvaluator
public MockExpressionEvaluator(PageContext pageContext)
- Create a new MockExpressionEvaluator for the given PageContext.
- Parameters:
pageContext
- the JSP PageContext to run in
parseExpression
public Expression parseExpression(String expression,
Class expectedType,
FunctionMapper functionMapper)
throws ELException
- Specified by:
parseExpression
in class ExpressionEvaluator
- Throws:
ELException
evaluate
public Object evaluate(String expression,
Class expectedType,
VariableResolver variableResolver,
FunctionMapper functionMapper)
throws ELException
- Specified by:
evaluate
in class ExpressionEvaluator
- Throws:
ELException
doEvaluate
protected Object doEvaluate(String expression,
Class expectedType,
FunctionMapper functionMapper)
throws ELException
- Throws:
ELException
Copyright © 2002-2007 The Spring Framework.