Class Node.CustomTag

java.lang.Object
org.apache.jasper.compiler.Node
org.apache.jasper.compiler.Node.CustomTag
All Implemented Interfaces:
TagConstants
Enclosing class:
Node

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

    • jspVersion

      private double jspVersion
    • uri

      private String uri
    • prefix

      private String prefix
    • jspAttrs

      private Node.JspAttribute[] jspAttrs
    • tagData

      private javax.servlet.jsp.tagext.TagData tagData
    • tagHandlerPoolName

      private String tagHandlerPoolName
    • tagInfo

      private javax.servlet.jsp.tagext.TagInfo tagInfo
    • tagFileInfo

      private javax.servlet.jsp.tagext.TagFileInfo tagFileInfo
    • tagHandlerClass

      private Class tagHandlerClass
    • varInfos

      private javax.servlet.jsp.tagext.VariableInfo[] varInfos
    • customNestingLevel

      private int customNestingLevel
    • childInfo

      private Node.ChildInfo childInfo
    • implementsIterationTag

      private boolean implementsIterationTag
    • implementsBodyTag

      private boolean implementsBodyTag
    • implementsTryCatchFinally

      private boolean implementsTryCatchFinally
    • implementsSimpleTag

      private boolean implementsSimpleTag
    • implementsDynamicAttributes

      private boolean implementsDynamicAttributes
    • atBeginScriptingVars

      private ArrayList<Object> atBeginScriptingVars
    • atEndScriptingVars

      private ArrayList<Object> atEndScriptingVars
    • nestedScriptingVars

      private ArrayList<Object> nestedScriptingVars
    • customTagParent

      private Node.CustomTag customTagParent
    • numCount

      private Integer numCount
    • useTagPlugin

      private boolean useTagPlugin
    • tagPluginContext

      private TagPluginContext tagPluginContext
    • jspId

      private int jspId
    • tempVars

      private HashMap<String,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...
    • atETag

      private Node.Nodes atETag
  • Constructor Details

  • Method Details

    • 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 String getURI()
      Returns:
      The URI namespace that this custom action belongs to
    • getPrefix

      public String getPrefix()
      Returns:
      The tag prefix
    • setJspAttributes

      public void setJspAttributes(Node.JspAttribute[] jspAttrs)
    • getJspAttributes

      public Node.JspAttribute[] getJspAttributes()
    • getChildInfo

      public Node.ChildInfo getChildInfo()
    • setTagData

      public void setTagData(javax.servlet.jsp.tagext.TagData tagData)
    • getTagData

      public javax.servlet.jsp.tagext.TagData getTagData()
    • setTagHandlerPoolName

      public void setTagHandlerPoolName(String s)
    • getTagHandlerPoolName

      public String getTagHandlerPoolName()
    • getTagInfo

      public javax.servlet.jsp.tagext.TagInfo getTagInfo()
    • getTagFileInfo

      public javax.servlet.jsp.tagext.TagFileInfo getTagFileInfo()
    • isTagFile

      public boolean isTagFile()
    • getTagHandlerClass

      public Class getTagHandlerClass()
    • setTagHandlerClass

      public void setTagHandlerClass(Class hc)
    • implementsIterationTag

      public boolean implementsIterationTag()
    • implementsBodyTag

      public boolean implementsBodyTag()
    • implementsTryCatchFinally

      public boolean implementsTryCatchFinally()
    • implementsSimpleTag

      public boolean implementsSimpleTag()
    • implementsDynamicAttributes

      public boolean implementsDynamicAttributes()
    • getTagVariableInfos

      public javax.servlet.jsp.tagext.TagVariableInfo[] getTagVariableInfos()
    • getVariableInfos

      public javax.servlet.jsp.tagext.VariableInfo[] getVariableInfos()
    • setCustomTagParent

      public void setCustomTagParent(Node.CustomTag n)
    • getCustomTagParent

      public Node.CustomTag getCustomTagParent()
    • setNumCount

      public void setNumCount(Integer count)
    • getNumCount

      public Integer getNumCount()
    • setScriptingVars

      public void setScriptingVars(ArrayList<Object> vec, int scope)
    • getScriptingVars

      public ArrayList<Object> getScriptingVars(int scope)
    • getCustomNestingLevel

      public int getCustomNestingLevel()
    • checkIfAttributeIsJspFragment

      public boolean checkIfAttributeIsJspFragment(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)
    • getTagPluginContext

      public TagPluginContext getTagPluginContext()
    • setAtSTag

      public void setAtSTag(Node.Nodes sTag)
    • getAtSTag

      public Node.Nodes getAtSTag()
    • setAtETag

      public void setAtETag(Node.Nodes eTag)
    • getAtETag

      public Node.Nodes getAtETag()
    • 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 String getTempScriptingVar(String scriptingVar)
    • setTempScriptingVar

      public void setTempScriptingVar(String scriptingVar, String tempScriptingVar)