Class Node.CustomTag

All Implemented Interfaces:
TagConstants
Enclosing class:
Node

public static class Node.CustomTag extends Node.ChildInfoBase
Represents a custom tag
Author:
Kin-man Chung, Jan Luehe, Shawn Bayern, Mark Roth
  • Method Details

    • accept

      public void accept(Node.Visitor v) throws JasperException
      Throws:
      JasperException
    • 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()
    • setTagData

      public void setTagData(TagData tagData)
    • getTagData

      public TagData getTagData()
    • setTagHandlerPoolName

      public void setTagHandlerPoolName(String s)
    • getTagHandlerPoolName

      public String getTagHandlerPoolName()
    • getTagInfo

      public TagInfo getTagInfo()
    • getTagFileInfo

      public 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()
    • implementsJspIdConsumer

      public boolean implementsJspIdConsumer()
    • implementsSimpleTag

      public boolean implementsSimpleTag()
    • implementsDynamicAttributes

      public boolean implementsDynamicAttributes()
    • getTagVariableInfos

      public TagVariableInfo[] getTagVariableInfos()
    • getVariableInfos

      public 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(List<Object> vec, int scope)
    • getScriptingVars

      public List<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.
      Parameters:
      name - The attribute to check
      Returns:
      true if it is a 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()
    • hasEmptyBody

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