org.apache.jasper.runtime
Class ExpressionEvaluatorImpl

java.lang.Object
  |
  +--org.apache.jasper.runtime.ExpressionEvaluatorImpl
All Implemented Interfaces:
javax.servlet.jsp.el.ExpressionEvaluator

public class ExpressionEvaluatorImpl
extends java.lang.Object
implements javax.servlet.jsp.el.ExpressionEvaluator

An adapter for the JSTL Expression Evaluator.

Encapsulates and delegates to the JSTL evaluator, until the JSTL evaluator APIs are up to date with JSP 2.0.

Note: This is quite a hack at the moment. This entire class needs to be rewritten (and indeed may be obsoleted) once the EL interpreter moves out of JSTL and in to its own project.

Author:
Mark Roth

Constructor Summary
ExpressionEvaluatorImpl(PageContextImpl pageContext)
          Create a new expression evaluator that delegates to the given evaluator.
 
Method Summary
 java.lang.Object evaluate(java.lang.String expression, java.lang.Class expectedType, javax.servlet.jsp.el.VariableResolver vResolver, javax.servlet.jsp.el.FunctionMapper fMapper, java.lang.String defaultPrefix)
           
 javax.servlet.jsp.el.Expression parseExpression(java.lang.String expression, java.lang.Class expectedType, javax.servlet.jsp.el.FunctionMapper fMapper, java.lang.String defaultPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionEvaluatorImpl

public ExpressionEvaluatorImpl(PageContextImpl pageContext)
Create a new expression evaluator that delegates to the given evaluator.

Method Detail

evaluate

public java.lang.Object evaluate(java.lang.String expression,
                                 java.lang.Class expectedType,
                                 javax.servlet.jsp.el.VariableResolver vResolver,
                                 javax.servlet.jsp.el.FunctionMapper fMapper,
                                 java.lang.String defaultPrefix)
                          throws javax.servlet.jsp.el.ELException
Specified by:
evaluate in interface javax.servlet.jsp.el.ExpressionEvaluator
javax.servlet.jsp.el.ELException

parseExpression

public javax.servlet.jsp.el.Expression parseExpression(java.lang.String expression,
                                                       java.lang.Class expectedType,
                                                       javax.servlet.jsp.el.FunctionMapper fMapper,
                                                       java.lang.String defaultPrefix)
                                                throws javax.servlet.jsp.el.ELException
Specified by:
parseExpression in interface javax.servlet.jsp.el.ExpressionEvaluator
javax.servlet.jsp.el.ELException


Copyright © 2000 Apache Software Foundation. All Rights Reserved.