java.lang.Object
org.apache.taglibs.standard.lang.jstl.Evaluator
- All Implemented Interfaces:
- org.apache.taglibs.standard.lang.support.ExpressionEvaluator
- public class Evaluator
- extends java.lang.Object
- implements org.apache.taglibs.standard.lang.support.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.
- Version:
- $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: pierred $
|
Method Summary |
java.lang.Object |
evaluate(java.lang.String pAttributeName,
java.lang.String pAttributeValue,
java.lang.Class pExpectedType,
javax.servlet.jsp.tagext.Tag pTag,
javax.servlet.jsp.PageContext pPageContext)
Conduit to old-style call for convenience. |
java.lang.Object |
evaluate(java.lang.String pAttributeName,
java.lang.String pAttributeValue,
java.lang.Class pExpectedType,
javax.servlet.jsp.tagext.Tag pTag,
javax.servlet.jsp.PageContext pPageContext,
java.util.Map functions,
java.lang.String defaultPrefix)
Evaluates the expression at request time |
static java.lang.String |
parseAndRender(java.lang.String pAttributeValue)
Parses the given attribute value, then converts it back to a
String in its canonical form. |
java.lang.String |
validate(java.lang.String pAttributeName,
java.lang.String pAttributeValue)
Translation time validation of an attribute value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sEvaluator
static ELEvaluator sEvaluator
- The singleton instance of the evaluator
Evaluator
public Evaluator()
validate
public java.lang.String validate(java.lang.String pAttributeName,
java.lang.String pAttributeValue)
- Translation time validation of an attribute value. This method
will return a null String if the attribute value is valid;
otherwise an error message.
- Specified by:
validate in interface org.apache.taglibs.standard.lang.support.ExpressionEvaluator
evaluate
public java.lang.Object evaluate(java.lang.String pAttributeName,
java.lang.String pAttributeValue,
java.lang.Class pExpectedType,
javax.servlet.jsp.tagext.Tag pTag,
javax.servlet.jsp.PageContext pPageContext,
java.util.Map functions,
java.lang.String defaultPrefix)
throws javax.servlet.jsp.JspException
- Evaluates the expression at request time
evaluate
public java.lang.Object evaluate(java.lang.String pAttributeName,
java.lang.String pAttributeValue,
java.lang.Class pExpectedType,
javax.servlet.jsp.tagext.Tag pTag,
javax.servlet.jsp.PageContext pPageContext)
throws javax.servlet.jsp.JspException
- Conduit to old-style call for convenience.
- Specified by:
evaluate in interface org.apache.taglibs.standard.lang.support.ExpressionEvaluator
parseAndRender
public static java.lang.String parseAndRender(java.lang.String pAttributeValue)
throws javax.servlet.jsp.JspException
- Parses the given attribute value, then converts it back to a
String in its canonical form.