org.springframework.mock.web
Class MockExpressionEvaluator

java.lang.Object
  extended byjavax.servlet.jsp.el.ExpressionEvaluator
      extended byorg.springframework.mock.web.MockExpressionEvaluator

public class MockExpressionEvaluator
extends ExpressionEvaluator

Mock implementation of the JSP 2.0 ExpressionEvaluator, 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

Constructor Summary
MockExpressionEvaluator(PageContext pageContext)
           
 
Method Summary
protected  Object doEvaluate(String expression, Class expectedType, FunctionMapper functionMapper)
           
 Object evaluate(String expression, Class expectedType, VariableResolver variableResolver, FunctionMapper functionMapper)
           
 Expression parseExpression(String expression, Class expectedType, FunctionMapper functionMapper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockExpressionEvaluator

public MockExpressionEvaluator(PageContext pageContext)
Method Detail

parseExpression

public Expression parseExpression(String expression,
                                  Class expectedType,
                                  FunctionMapper functionMapper)
                           throws ELException
Throws:
ELException

evaluate

public Object evaluate(String expression,
                       Class expectedType,
                       VariableResolver variableResolver,
                       FunctionMapper functionMapper)
                throws ELException
Throws:
ELException

doEvaluate

protected Object doEvaluate(String expression,
                            Class expectedType,
                            FunctionMapper functionMapper)
                     throws ELException
Throws:
ELException


Copyright (C) 2003-2004 The Spring Framework Project.