org.apache.jasper.compiler

Class Node.CustomTag

public static class Node.CustomTag extends Node

Represents a custom tag
Constructor Summary
CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs, Mark start, Node parent, TagInfo tagInfo, Class tagHandlerClass)
CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs, Attributes nonTaglibXmlnsAttrs, Attributes taglibAttrs, Mark start, Node parent, TagInfo tagInfo, Class tagHandlerClass)
CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs, Mark start, Node parent, TagFileInfo tagFileInfo)
CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs, Attributes nonTaglibXmlnsAttrs, Attributes taglibAttrs, Mark start, Node parent, TagFileInfo tagFileInfo)
Method Summary
voidaccept(Node.Visitor v)
booleancheckIfAttributeIsJspFragment(String name)
Checks to see if the attribute of the given name is of type JspFragment.
Node.NodesgetAtETag()
Node.NodesgetAtSTag()
Node.ChildInfogetChildInfo()
intgetCustomNestingLevel()
Node.CustomTaggetCustomTagParent()
Node.JspAttribute[]getJspAttributes()
IntegergetNumCount()
StringgetPrefix()
VectorgetScriptingVars(int scope)
TagAttributeInfogetTagAttributeInfo(String name)
TagDatagetTagData()
TagFileInfogetTagFileInfo()
ClassgetTagHandlerClass()
StringgetTagHandlerPoolName()
TagInfogetTagInfo()
TagPluginContextgetTagPluginContext()
TagVariableInfo[]getTagVariableInfos()
StringgetURI()
VariableInfo[]getVariableInfos()
booleanhasEmptyBody()
Returns true if this custom action has an empty body, and false otherwise.
booleanimplementsBodyTag()
booleanimplementsDynamicAttributes()
booleanimplementsIterationTag()
booleanimplementsJspIdConsumer()
booleanimplementsSimpleTag()
booleanimplementsTryCatchFinally()
booleanisTagFile()
voidsetAtETag(Node.Nodes eTag)
voidsetAtSTag(Node.Nodes sTag)
voidsetCustomTagParent(Node.CustomTag n)
voidsetJspAttributes(Node.JspAttribute[] jspAttrs)
voidsetNumCount(Integer count)
voidsetScriptingVars(Vector vec, int scope)
voidsetTagData(TagData tagData)
voidsetTagHandlerClass(Class hc)
voidsetTagHandlerPoolName(String s)
voidsetTagPluginContext(TagPluginContext tagPluginContext)
voidsetUseTagPlugin(boolean use)
booleanuseTagPlugin()

Constructor Detail

CustomTag

public CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs, Mark start, Node parent, TagInfo tagInfo, Class tagHandlerClass)

CustomTag

public CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs, Attributes nonTaglibXmlnsAttrs, Attributes taglibAttrs, Mark start, Node parent, TagInfo tagInfo, Class tagHandlerClass)

CustomTag

public CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs, Mark start, Node parent, TagFileInfo tagFileInfo)

CustomTag

public CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs, Attributes nonTaglibXmlnsAttrs, Attributes taglibAttrs, Mark start, Node parent, TagFileInfo tagFileInfo)

Method Detail

accept

public void accept(Node.Visitor v)

checkIfAttributeIsJspFragment

public boolean checkIfAttributeIsJspFragment(String name)
Checks to see if the attribute of the given name is of type JspFragment.

getAtETag

public Node.Nodes getAtETag()

getAtSTag

public Node.Nodes getAtSTag()

getChildInfo

public Node.ChildInfo getChildInfo()

getCustomNestingLevel

public int getCustomNestingLevel()

getCustomTagParent

public Node.CustomTag getCustomTagParent()

getJspAttributes

public Node.JspAttribute[] getJspAttributes()

getNumCount

public Integer getNumCount()

getPrefix

public String getPrefix()

Returns: The tag prefix

getScriptingVars

public Vector getScriptingVars(int scope)

getTagAttributeInfo

public TagAttributeInfo getTagAttributeInfo(String name)

getTagData

public TagData getTagData()

getTagFileInfo

public TagFileInfo getTagFileInfo()

getTagHandlerClass

public Class getTagHandlerClass()

getTagHandlerPoolName

public String getTagHandlerPoolName()

getTagInfo

public TagInfo getTagInfo()

getTagPluginContext

public TagPluginContext getTagPluginContext()

getTagVariableInfos

public TagVariableInfo[] getTagVariableInfos()

getURI

public String getURI()

Returns: The URI namespace that this custom action belongs to

getVariableInfos

public VariableInfo[] getVariableInfos()

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.

implementsBodyTag

public boolean implementsBodyTag()

implementsDynamicAttributes

public boolean implementsDynamicAttributes()

implementsIterationTag

public boolean implementsIterationTag()

implementsJspIdConsumer

public boolean implementsJspIdConsumer()

implementsSimpleTag

public boolean implementsSimpleTag()

implementsTryCatchFinally

public boolean implementsTryCatchFinally()

isTagFile

public boolean isTagFile()

setAtETag

public void setAtETag(Node.Nodes eTag)

setAtSTag

public void setAtSTag(Node.Nodes sTag)

setCustomTagParent

public void setCustomTagParent(Node.CustomTag n)

setJspAttributes

public void setJspAttributes(Node.JspAttribute[] jspAttrs)

setNumCount

public void setNumCount(Integer count)

setScriptingVars

public void setScriptingVars(Vector vec, int scope)

setTagData

public void setTagData(TagData tagData)

setTagHandlerClass

public void setTagHandlerClass(Class hc)

setTagHandlerPoolName

public void setTagHandlerPoolName(String s)

setTagPluginContext

public void setTagPluginContext(TagPluginContext tagPluginContext)

setUseTagPlugin

public void setUseTagPlugin(boolean use)

useTagPlugin

public boolean useTagPlugin()
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.