FileDocCategorySizeDatePackage
ExpressionEvaluatorImpl.javaAPI DocApache Tomcat 6.0.142242Fri Jul 20 04:20:34 BST 2007org.apache.jasper.el

ExpressionEvaluatorImpl

public final class ExpressionEvaluatorImpl extends javax.servlet.jsp.el.ExpressionEvaluator

Fields Summary
private final ExpressionFactory
factory
Constructors Summary
public ExpressionEvaluatorImpl(ExpressionFactory factory)

		this.factory = factory;
	
Methods Summary
public java.lang.Objectevaluate(java.lang.String expression, java.lang.Class expectedType, javax.servlet.jsp.el.VariableResolver vResolver, javax.servlet.jsp.el.FunctionMapper fMapper)

		return this.parseExpression(expression, expectedType, fMapper).evaluate(vResolver);
	
public javax.servlet.jsp.el.ExpressionparseExpression(java.lang.String expression, java.lang.Class expectedType, javax.servlet.jsp.el.FunctionMapper fMapper)

		try {
			ELContextImpl ctx = new ELContextImpl(ELResolverImpl.DefaultResolver);
            if (fMapper != null) {
                ctx.setFunctionMapper(new FunctionMapperImpl(fMapper));
            }
			ValueExpression ve = this.factory.createValueExpression(ctx, expression, expectedType);
			return new ExpressionImpl(ve);
		} catch (javax.el.ELException e) {
			throw new ELParseException(e.getMessage());
		}