static class Validator.ValidateVisitor extends Node.Visitor
| Modifier and Type | Class and Description |
|---|---|
private static class |
Validator.ValidateVisitor.NamedAttributeVisitor |
| Modifier and Type | Field and Description |
|---|---|
private static JspUtil.ValidAttribute[] |
attributeAttrs |
private JspCompilationContext |
ctxt |
private static JspUtil.ValidAttribute[] |
doBodyAttrs |
private ErrorDispatcher |
err |
private static JspUtil.ValidAttribute[] |
forwardActionAttrs |
private static JspUtil.ValidAttribute[] |
getPropertyAttrs |
private static JspUtil.ValidAttribute[] |
includeActionAttrs |
private static JspUtil.ValidAttribute[] |
includeDirectiveAttrs |
private static JspUtil.ValidAttribute[] |
invokeAttrs |
private static JspUtil.ValidAttribute[] |
jspOutputAttrs |
private static JspUtil.ValidAttribute[] |
jspRootAttrs |
private java.lang.ClassLoader |
loader |
private PageInfo |
pageInfo |
private static JspUtil.ValidAttribute[] |
paramActionAttrs |
private static JspUtil.ValidAttribute[] |
plugInAttrs |
private static JspUtil.ValidAttribute[] |
setPropertyAttrs |
private static JspUtil.ValidAttribute[] |
taglibDirectiveAttrs |
private static JspUtil.ValidAttribute[] |
useBeanAttrs |
| Constructor and Description |
|---|
ValidateVisitor(Compiler compiler) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkNamedAttributes(Node.CustomTag n,
Node.JspAttribute[] jspAttrs,
int start,
java.util.Hashtable<java.lang.String,java.lang.Object> tagDataAttrs) |
private void |
checkSetter(Node.CustomTag n,
javax.servlet.jsp.tagext.TagAttributeInfo tldattr) |
private void |
checkXmlAttributes(Node.CustomTag n,
Node.JspAttribute[] jspAttrs,
java.util.Hashtable<java.lang.String,java.lang.Object> tagDataAttrs) |
private java.lang.String |
escapePound(java.lang.String value) |
private java.lang.String |
findUri(java.lang.String prefix,
Node n) |
private javax.el.FunctionMapper |
getFunctionMapper(ELNode.Nodes el) |
private Node.JspAttribute |
getJspAttribute(java.lang.String qName,
java.lang.String uri,
java.lang.String localName,
java.lang.String value,
Node n,
boolean dynamic,
javax.servlet.jsp.tagext.TagAttributeInfo tagAttr)
Preprocess attributes that can be expressions.
|
private java.lang.String |
getLiteral(Node n,
java.lang.String value) |
private java.lang.String |
getMethod(java.lang.String signature)
Get the method name from the signature.
|
private java.lang.String[] |
getParameters(java.lang.String signature)
Get the parameters types from the function signature.
|
private java.lang.String |
getReturnType(java.lang.String signature)
Get the return type from the signature.
|
private void |
processSignature(ELNode.Function func) |
private void |
throwErrorIfExpression(Node n,
java.lang.String attrName,
java.lang.String actionName) |
private void |
validateFunctions(ELNode.Nodes el,
Node n)
Validate functions in EL expressions
|
void |
visit(Node.CustomTag n) |
void |
visit(Node.Declaration n) |
void |
visit(Node.DoBodyAction n) |
void |
visit(Node.ELExpression n) |
void |
visit(Node.Expression n) |
void |
visit(Node.ForwardAction n) |
void |
visit(Node.GetProperty n) |
void |
visit(Node.IncludeAction n) |
void |
visit(Node.IncludeDirective n) |
void |
visit(Node.InvokeAction n) |
void |
visit(Node.JspBody n) |
void |
visit(Node.JspElement n) |
void |
visit(Node.JspOutput n) |
void |
visit(Node.JspRoot n) |
void |
visit(Node.NamedAttribute n) |
void |
visit(Node.ParamAction n) |
void |
visit(Node.ParamsAction n) |
void |
visit(Node.PlugIn n) |
void |
visit(Node.Scriptlet n) |
void |
visit(Node.SetProperty n) |
void |
visit(Node.TaglibDirective n) |
void |
visit(Node.UninterpretedTag n) |
void |
visit(Node.UseBean n) |
private PageInfo pageInfo
private ErrorDispatcher err
private java.lang.ClassLoader loader
private JspCompilationContext ctxt
private static final JspUtil.ValidAttribute[] jspRootAttrs
private static final JspUtil.ValidAttribute[] includeDirectiveAttrs
private static final JspUtil.ValidAttribute[] taglibDirectiveAttrs
private static final JspUtil.ValidAttribute[] includeActionAttrs
private static final JspUtil.ValidAttribute[] paramActionAttrs
private static final JspUtil.ValidAttribute[] forwardActionAttrs
private static final JspUtil.ValidAttribute[] getPropertyAttrs
private static final JspUtil.ValidAttribute[] setPropertyAttrs
private static final JspUtil.ValidAttribute[] useBeanAttrs
private static final JspUtil.ValidAttribute[] plugInAttrs
private static final JspUtil.ValidAttribute[] attributeAttrs
private static final JspUtil.ValidAttribute[] invokeAttrs
private static final JspUtil.ValidAttribute[] doBodyAttrs
private static final JspUtil.ValidAttribute[] jspOutputAttrs
ValidateVisitor(Compiler compiler)
public void visit(Node.JspRoot n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.IncludeDirective n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.TaglibDirective n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.ParamAction n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.ParamsAction n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.IncludeAction n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.ForwardAction n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.GetProperty n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.SetProperty n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.UseBean n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.PlugIn n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.NamedAttribute n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.JspBody n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.Declaration n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.Expression n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.Scriptlet n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.ELExpression n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.UninterpretedTag n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.CustomTag n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.JspElement n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.JspOutput n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.InvokeAction n) throws JasperException
visit in class Node.VisitorJasperExceptionpublic void visit(Node.DoBodyAction n) throws JasperException
visit in class Node.VisitorJasperExceptionprivate void checkSetter(Node.CustomTag n, javax.servlet.jsp.tagext.TagAttributeInfo tldattr) throws JasperException
JasperExceptionprivate void checkXmlAttributes(Node.CustomTag n, Node.JspAttribute[] jspAttrs, java.util.Hashtable<java.lang.String,java.lang.Object> tagDataAttrs) throws JasperException
JasperExceptionprivate void checkNamedAttributes(Node.CustomTag n, Node.JspAttribute[] jspAttrs, int start, java.util.Hashtable<java.lang.String,java.lang.Object> tagDataAttrs) throws JasperException
JasperExceptionprivate Node.JspAttribute getJspAttribute(java.lang.String qName, java.lang.String uri, java.lang.String localName, java.lang.String value, Node n, boolean dynamic, javax.servlet.jsp.tagext.TagAttributeInfo tagAttr) throws JasperException
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.
JasperExceptionprivate java.lang.String getLiteral(Node n, java.lang.String value)
private void throwErrorIfExpression(Node n, java.lang.String attrName, java.lang.String actionName) throws JasperException
JasperExceptionprivate java.lang.String escapePound(java.lang.String value)
private java.lang.String findUri(java.lang.String prefix,
Node n)
private void validateFunctions(ELNode.Nodes el, Node n) throws JasperException
JasperExceptionprivate void processSignature(ELNode.Function func) throws JasperException
JasperExceptionprivate java.lang.String getReturnType(java.lang.String signature)
throws JasperException
JasperExceptionprivate java.lang.String getMethod(java.lang.String signature)
throws JasperException
JasperExceptionprivate java.lang.String[] getParameters(java.lang.String signature)
throws JasperException
JasperExceptionprivate javax.el.FunctionMapper getFunctionMapper(ELNode.Nodes el) throws JasperException
JasperException