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,
javax.servlet.jsp.tagext.Tag pTag,
javax.servlet.jsp.PageContext pPageContext)
Conduit to old-style call for convenience.
|
Object |
evaluate(String pAttributeName,
String pAttributeValue,
Class pExpectedType,
javax.servlet.jsp.tagext.Tag pTag,
javax.servlet.jsp.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 ExpressionEvaluatorpublic Object evaluate(String pAttributeName, String pAttributeValue, Class pExpectedType, javax.servlet.jsp.tagext.Tag pTag, javax.servlet.jsp.PageContext pPageContext, Map functions, String defaultPrefix) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionpublic Object evaluate(String pAttributeName, String pAttributeValue, Class pExpectedType, javax.servlet.jsp.tagext.Tag pTag, javax.servlet.jsp.PageContext pPageContext) throws javax.servlet.jsp.JspException
evaluate in interface ExpressionEvaluatorjavax.servlet.jsp.JspExceptionCopyright © 2017 JBoss, a division of Red Hat, Inc.. All Rights Reserved.