Class Node.CustomTag

  • All Implemented Interfaces:
    TagConstants
    Enclosing class:
    Node

    public static class Node.CustomTag
    extends Node
    Represents a custom tag
    • Field Detail

      • jspVersion

        private double jspVersion
      • uri

        private java.lang.String uri
      • prefix

        private java.lang.String prefix
      • tagHandlerPoolName

        private java.lang.String tagHandlerPoolName
      • tagHandlerClass

        private java.lang.Class tagHandlerClass
      • customNestingLevel

        private int customNestingLevel
      • implementsIterationTag

        private boolean implementsIterationTag
      • implementsBodyTag

        private boolean implementsBodyTag
      • implementsTryCatchFinally

        private boolean implementsTryCatchFinally
      • implementsSimpleTag

        private boolean implementsSimpleTag
      • implementsDynamicAttributes

        private boolean implementsDynamicAttributes
      • atBeginScriptingVars

        private java.util.ArrayList<java.lang.Object> atBeginScriptingVars
      • atEndScriptingVars

        private java.util.ArrayList<java.lang.Object> atEndScriptingVars
      • nestedScriptingVars

        private java.util.ArrayList<java.lang.Object> nestedScriptingVars
      • numCount

        private java.lang.Integer numCount
      • useTagPlugin

        private boolean useTagPlugin
      • jspId

        private int jspId
      • tempVars

        private java.util.HashMap<java.lang.String,​java.lang.String> tempVars
      • atSTag

        private Node.Nodes atSTag
        The following two fields are used for holding the Java scriptlets that the tag plugins may generate. Meaningful only if useTagPlugin is true; Could move them into TagPluginContextImpl, but we'll need to cast tagPluginContext to TagPluginContextImpl all the time...
    • Constructor Detail

      • CustomTag

        public CustomTag​(java.lang.String jspVersion,
                         java.lang.String qName,
                         java.lang.String prefix,
                         java.lang.String localName,
                         java.lang.String uri,
                         org.xml.sax.Attributes attrs,
                         Mark start,
                         Node parent,
                         TagInfo tagInfo,
                         java.lang.Class tagHandlerClass)
      • CustomTag

        public CustomTag​(java.lang.String jspVersion,
                         java.lang.String qName,
                         java.lang.String prefix,
                         java.lang.String localName,
                         java.lang.String uri,
                         org.xml.sax.Attributes attrs,
                         org.xml.sax.Attributes nonTaglibXmlnsAttrs,
                         org.xml.sax.Attributes taglibAttrs,
                         Mark start,
                         Node parent,
                         TagInfo tagInfo,
                         java.lang.Class tagHandlerClass)
      • CustomTag

        public CustomTag​(java.lang.String jspVersion,
                         java.lang.String qName,
                         java.lang.String prefix,
                         java.lang.String localName,
                         java.lang.String uri,
                         org.xml.sax.Attributes attrs,
                         Mark start,
                         Node parent,
                         TagFileInfo tagFileInfo)
      • CustomTag

        public CustomTag​(java.lang.String jspVersion,
                         java.lang.String qName,
                         java.lang.String prefix,
                         java.lang.String localName,
                         java.lang.String uri,
                         org.xml.sax.Attributes attrs,
                         org.xml.sax.Attributes nonTaglibXmlnsAttrs,
                         org.xml.sax.Attributes taglibAttrs,
                         Mark start,
                         Node parent,
                         TagFileInfo tagFileInfo)
    • Method Detail

      • accept

        public void accept​(Node.Visitor v)
                    throws JasperException
        Description copied from class: Node
        Selects and invokes a method in the visitor class based on the node type. This is abstract and should be overrode by the extending classes.
        Specified by:
        accept in class Node
        Parameters:
        v - The visitor class
        Throws:
        JasperException
      • getJspVersion

        public double getJspVersion()
        Returns:
        The jspVersion of the tag
      • getURI

        public java.lang.String getURI()
        Returns:
        The URI namespace that this custom action belongs to
      • getPrefix

        public java.lang.String getPrefix()
        Returns:
        The tag prefix
      • setTagData

        public void setTagData​(TagData tagData)
      • getTagData

        public TagData getTagData()
      • setTagHandlerPoolName

        public void setTagHandlerPoolName​(java.lang.String s)
      • getTagHandlerPoolName

        public java.lang.String getTagHandlerPoolName()
      • getTagInfo

        public TagInfo getTagInfo()
      • isTagFile

        public boolean isTagFile()
      • getTagHandlerClass

        public java.lang.Class getTagHandlerClass()
      • setTagHandlerClass

        public void setTagHandlerClass​(java.lang.Class hc)
      • implementsIterationTag

        public boolean implementsIterationTag()
      • implementsBodyTag

        public boolean implementsBodyTag()
      • implementsTryCatchFinally

        public boolean implementsTryCatchFinally()
      • implementsSimpleTag

        public boolean implementsSimpleTag()
      • implementsDynamicAttributes

        public boolean implementsDynamicAttributes()
      • getVariableInfos

        public VariableInfo[] getVariableInfos()
      • setCustomTagParent

        public void setCustomTagParent​(Node.CustomTag n)
      • setNumCount

        public void setNumCount​(java.lang.Integer count)
      • getNumCount

        public java.lang.Integer getNumCount()
      • setScriptingVars

        public void setScriptingVars​(java.util.ArrayList<java.lang.Object> vec,
                                     int scope)
      • getScriptingVars

        public java.util.ArrayList<java.lang.Object> getScriptingVars​(int scope)
      • getCustomNestingLevel

        public int getCustomNestingLevel()
      • checkIfAttributeIsJspFragment

        public boolean checkIfAttributeIsJspFragment​(java.lang.String name)
        Checks to see if the attribute of the given name is of type JspFragment.
      • setUseTagPlugin

        public void setUseTagPlugin​(boolean use)
      • useTagPlugin

        public boolean useTagPlugin()
      • setTagPluginContext

        public void setTagPluginContext​(TagPluginContext tagPluginContext)
      • setAtSTag

        public void setAtSTag​(Node.Nodes sTag)
      • setAtETag

        public void setAtETag​(Node.Nodes eTag)
      • setJspId

        public void setJspId​(int jspId)
      • getJspId

        public int getJspId()
      • makeCustomNestingLevel

        private int makeCustomNestingLevel()
      • hasEmptyBody

        public boolean hasEmptyBody()
        Returns true if this custom action has an empty body, and false otherwise. A custom action is considered to have an empty body if the following holds true: - getBody() returns null, or - all immediate children are jsp:attribute actions, or - the action's jsp:body is empty.
      • getTempScriptingVar

        public java.lang.String getTempScriptingVar​(java.lang.String scriptingVar)
      • setTempScriptingVar

        public void setTempScriptingVar​(java.lang.String scriptingVar,
                                        java.lang.String tempScriptingVar)