Package org.apache.jasper.compiler
Class Validator.ValidateVisitor
java.lang.Object
org.apache.jasper.compiler.Node.Visitor
org.apache.jasper.compiler.Validator.ValidateVisitor
- Enclosing class:
Validator
A visitor for validating nodes other than page directives
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final JspUtil.ValidAttribute[]
private JspCompilationContext
private static final JspUtil.ValidAttribute[]
private ErrorDispatcher
private static final JspUtil.ValidAttribute[]
private static final JspUtil.ValidAttribute[]
private static final JspUtil.ValidAttribute[]
private static final JspUtil.ValidAttribute[]
private static final JspUtil.ValidAttribute[]
private static final JspUtil.ValidAttribute[]
private static final JspUtil.ValidAttribute[]
private ClassLoader
private PageInfo
private static final JspUtil.ValidAttribute[]
private static final JspUtil.ValidAttribute[]
private static final JspUtil.ValidAttribute[]
private static final JspUtil.ValidAttribute[]
private static final JspUtil.ValidAttribute[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkNamedAttributes
(Node.CustomTag n, Node.JspAttribute[] jspAttrs, int start, Hashtable<String, Object> tagDataAttrs) private void
checkSetter
(Node.CustomTag n, javax.servlet.jsp.tagext.TagAttributeInfo tldattr) private void
checkXmlAttributes
(Node.CustomTag n, Node.JspAttribute[] jspAttrs, Hashtable<String, Object> tagDataAttrs) private String
escapePound
(String value) private String
private javax.el.FunctionMapper
private Node.JspAttribute
getJspAttribute
(String qName, String uri, String localName, String value, Node n, boolean dynamic, javax.servlet.jsp.tagext.TagAttributeInfo tagAttr) Preprocess attributes that can be expressions.private String
getLiteral
(Node n, String value) private String
Get the method name from the signature.private String[]
getParameters
(String signature) Get the parameters types from the function signature.private String
getReturnType
(String signature) Get the return type from the signature.private void
private void
throwErrorIfExpression
(Node n, String attrName, String actionName) private void
validateFunctions
(ELNode.Nodes el, Node n) Validate functions in EL expressionsvoid
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
visit
(Node.PlugIn n) void
void
void
void
void
-
Field Details
-
pageInfo
-
err
-
loader
-
ctxt
-
jspRootAttrs
-
includeDirectiveAttrs
-
taglibDirectiveAttrs
-
includeActionAttrs
-
paramActionAttrs
-
forwardActionAttrs
-
getPropertyAttrs
-
setPropertyAttrs
-
useBeanAttrs
-
plugInAttrs
-
attributeAttrs
-
invokeAttrs
-
doBodyAttrs
-
jspOutputAttrs
-
-
Constructor Details
-
ValidateVisitor
ValidateVisitor(Compiler compiler)
-
-
Method Details
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
checkSetter
private void checkSetter(Node.CustomTag n, javax.servlet.jsp.tagext.TagAttributeInfo tldattr) throws JasperException - Throws:
JasperException
-
checkXmlAttributes
private void checkXmlAttributes(Node.CustomTag n, Node.JspAttribute[] jspAttrs, Hashtable<String, Object> tagDataAttrs) throws JasperException- Throws:
JasperException
-
checkNamedAttributes
private void checkNamedAttributes(Node.CustomTag n, Node.JspAttribute[] jspAttrs, int start, Hashtable<String, Object> tagDataAttrs) throws JasperException- Throws:
JasperException
-
getJspAttribute
private Node.JspAttribute getJspAttribute(String qName, String uri, String localName, String value, Node n, boolean dynamic, javax.servlet.jsp.tagext.TagAttributeInfo tagAttr) throws JasperException Preprocess attributes that can be expressions. Expression delimiters are stripped.If value is null, checks if there are any NamedAttribute subelements in the tree node, and if so, constructs a JspAttribute out of a child NamedAttribute node.
- Throws:
JasperException
-
getLiteral
-
throwErrorIfExpression
private void throwErrorIfExpression(Node n, String attrName, String actionName) throws JasperException - Throws:
JasperException
-
escapePound
-
findUri
-
validateFunctions
Validate functions in EL expressions- Throws:
JasperException
-
processSignature
- Throws:
JasperException
-
getReturnType
Get the return type from the signature.- Throws:
JasperException
-
getMethod
Get the method name from the signature.- Throws:
JasperException
-
getParameters
Get the parameters types from the function signature.- Returns:
- An array of parameter class names
- Throws:
JasperException
-
getFunctionMapper
- Throws:
JasperException
-