Package org.apache.jasper.compiler
Class TagFileProcessor.TagFileDirectiveVisitor
java.lang.Object
org.apache.jasper.compiler.Node.Visitor
org.apache.jasper.compiler.TagFileProcessor.TagFileDirectiveVisitor
- Enclosing class:
TagFileProcessor
A visitor the tag file
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enum
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final JspUtil.ValidAttribute[]
private List
<javax.servlet.jsp.tagext.TagAttributeInfo> private String
private String
private String
private String
private ErrorDispatcher
private String
private Double
private String
private String
private String
private String
private static final JspUtil.ValidAttribute[]
private javax.servlet.jsp.tagext.TagLibraryInfo
private javax.servlet.jsp.tagext.TagExtraInfo
private static final JspUtil.ValidAttribute[]
private List
<javax.servlet.jsp.tagext.TagVariableInfo> -
Constructor Summary
ConstructorsConstructorDescriptionTagFileDirectiveVisitor
(Compiler compiler, javax.servlet.jsp.tagext.TagLibraryInfo tagLibInfo, String name, String path) -
Method Summary
Modifier and TypeMethodDescriptionprivate String
checkConflict
(Node n, String oldAttrValue, String attr) private void
checkUniqueName
(String name, TagFileProcessor.TagFileDirectiveVisitor.Name type, Node n) Reports a translation error if names specified in attributes of directives are not unique in this translation unit.private void
checkUniqueName
(String name, TagFileProcessor.TagFileDirectiveVisitor.Name type, Node n, javax.servlet.jsp.tagext.TagAttributeInfo attr) javax.servlet.jsp.tagext.TagInfo
(package private) void
Perform miscelleaneous checks after the nodes are visited.void
void
void
void
-
Field Details
-
tagDirectiveAttrs
-
attributeDirectiveAttrs
-
variableDirectiveAttrs
-
err
-
tagLibInfo
private javax.servlet.jsp.tagext.TagLibraryInfo tagLibInfo -
name
-
path
-
tei
private javax.servlet.jsp.tagext.TagExtraInfo tei -
bodycontent
-
description
-
displayName
-
smallIcon
-
largeIcon
-
dynamicAttrsMapName
-
example
-
attributeVector
-
variableVector
-
nameTable
-
nameFromTable
-
jspVersionDouble
-
-
Constructor Details
-
TagFileDirectiveVisitor
-
-
Method Details
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
checkConflict
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
visit
- Overrides:
visit
in classNode.Visitor
- Throws:
JasperException
-
getTagInfo
- Throws:
JasperException
-
checkUniqueName
private void checkUniqueName(String name, TagFileProcessor.TagFileDirectiveVisitor.Name type, Node n) throws JasperException Reports a translation error if names specified in attributes of directives are not unique in this translation unit. The value of the following attributes must be unique. 1. 'name' attribute of an attribute directive 2. 'name-given' attribute of a variable directive 3. 'alias' attribute of variable directive 4. 'dynamic-attributes' of a tag directive except that 'dynamic-attributes' can (and must) have the same value when it appears in multiple tag directives. Also, 'name-from' attribute of a variable directive cannot have the same value as that from another variable directive.- Throws:
JasperException
-
checkUniqueName
private void checkUniqueName(String name, TagFileProcessor.TagFileDirectiveVisitor.Name type, Node n, javax.servlet.jsp.tagext.TagAttributeInfo attr) throws JasperException - Throws:
JasperException
-
postCheck
Perform miscelleaneous checks after the nodes are visited.- Throws:
JasperException
-