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<TagAttributeInfo> private Stringprivate Stringprivate Stringprivate Stringprivate ErrorDispatcherprivate Stringprivate Doubleprivate Stringprivate Stringprivate Stringprivate Stringprivate static final JspUtil.ValidAttribute[]private TagLibraryInfoprivate TagExtraInfoprivate static final JspUtil.ValidAttribute[]private List<TagVariableInfo> -
Constructor Summary
ConstructorsConstructorDescriptionTagFileDirectiveVisitor(Compiler compiler, TagLibraryInfo tagLibInfo, String name, String path) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringcheckConflict(Node n, String oldAttrValue, String attr) private voidcheckUniqueName(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 voidcheckUniqueName(String name, TagFileProcessor.TagFileDirectiveVisitor.Name type, Node n, TagAttributeInfo attr) (package private) voidPerform miscelleaneous checks after the nodes are visited.voidvoidvoidvoid
-
Field Details
-
tagDirectiveAttrs
-
attributeDirectiveAttrs
-
variableDirectiveAttrs
-
err
-
tagLibInfo
-
name
-
path
-
tei
-
bodycontent
-
description
-
displayName
-
smallIcon
-
largeIcon
-
dynamicAttrsMapName
-
example
-
attributeVector
-
variableVector
-
nameTable
-
nameFromTable
-
jspVersionDouble
-
-
Constructor Details
-
TagFileDirectiveVisitor
public TagFileDirectiveVisitor(Compiler compiler, TagLibraryInfo tagLibInfo, String name, String path)
-
-
Method Details
-
visit
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
visit
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
checkConflict
- Throws:
JasperException
-
visit
- Overrides:
visitin classNode.Visitor- Throws:
JasperException
-
visit
- Overrides:
visitin 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, TagAttributeInfo attr) throws JasperException - Throws:
JasperException
-
postCheck
Perform miscelleaneous checks after the nodes are visited.- Throws:
JasperException
-