public class Evaluator extends Object implements ExpressionEvaluator
This is the expression evaluator "adapter" that customizes it for use with the JSP Standard Tag Library. It uses a VariableResolver implementation that looks up variables from the PageContext and also implements its implicit objects. It also wraps ELExceptions in JspExceptions that describe the attribute name and value causing the error.
Constructor and Description |
---|
Evaluator() |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(String pAttributeName,
String pAttributeValue,
Class pExpectedType,
Tag pTag,
PageContext pPageContext)
Conduit to old-style call for convenience.
|
Object |
evaluate(String pAttributeName,
String pAttributeValue,
Class pExpectedType,
Tag pTag,
PageContext pPageContext,
Map functions,
String defaultPrefix)
Evaluates the expression at request time
|
static String |
parseAndRender(String pAttributeValue)
Parses the given attribute value, then converts it back to a
String in its canonical form.
|
String |
validate(String pAttributeName,
String pAttributeValue)
Translation time validation of an attribute value.
|
public String validate(String pAttributeName, String pAttributeValue)
validate
in interface ExpressionEvaluator
public Object evaluate(String pAttributeName, String pAttributeValue, Class pExpectedType, Tag pTag, PageContext pPageContext, Map functions, String defaultPrefix) throws JspException
JspException
public Object evaluate(String pAttributeName, String pAttributeValue, Class pExpectedType, Tag pTag, PageContext pPageContext) throws JspException
evaluate
in interface ExpressionEvaluator
JspException
public static String parseAndRender(String pAttributeValue) throws JspException
JspException
Copyright © 2018 JBoss by Red Hat. All rights reserved.