org.apache.jasper.compiler

Class Node.CustomTag

Enclosing Class:
org.apache.jasper.compiler.Node
Implemented Interfaces:
TagConstants

public static class Node.CustomTag
extends org.apache.jasper.compiler.Node

Represents a custom tag

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.jasper.compiler.Node

Node.AttributeDirective, Node.AttributeGenerator, Node.ChildInfo, Node.Comment, Node.CustomTag, Node.Declaration, Node.DoBodyAction, Node.ELExpression, Node.Expression, Node.FallBackAction, Node.ForwardAction, Node.GetProperty, Node.IncludeAction, Node.IncludeDirective, Node.InvokeAction, Node.JspAttribute, Node.JspBody, Node.JspElement, Node.JspOutput, Node.JspRoot, Node.JspText, Node.NamedAttribute, Node.Nodes, Node.PageDirective, Node.ParamAction, Node.ParamsAction, Node.PlugIn, Node.Root, Node.ScriptingElement, Node.Scriptlet, Node.SetProperty, Node.TagDirective, Node.TaglibDirective, Node.TemplateText, Node.UninterpretedTag, Node.UseBean, Node.VariableDirective, Node.Visitor

Field Summary

Fields inherited from class org.apache.jasper.compiler.Node

attrs, beginJavaLine, body, endJavaLine, innerClassName, localName, namedAttributeNodes, nonTaglibXmlnsAttrs, parent, qName, startMark, taglibAttrs, text

Fields inherited from interface org.apache.jasper.compiler.TagConstants

ATTRIBUTE_ACTION, ATTRIBUTE_DIRECTIVE_ACTION, BODY_ACTION, DECLARATION_ACTION, DIRECTIVE_ACTION, DOBODY_ACTION, ELEMENT_ACTION, EXPRESSION_ACTION, FALLBACK_ACTION, FORWARD_ACTION, GET_PROPERTY_ACTION, INCLUDE_ACTION, INCLUDE_DIRECTIVE_ACTION, INVOKE_ACTION, JSP_ATTRIBUTE_ACTION, JSP_ATTRIBUTE_DIRECTIVE_ACTION, JSP_BODY_ACTION, JSP_DECLARATION_ACTION, JSP_DOBODY_ACTION, JSP_ELEMENT_ACTION, JSP_EXPRESSION_ACTION, JSP_FALLBACK_ACTION, JSP_FORWARD_ACTION, JSP_GET_PROPERTY_ACTION, JSP_INCLUDE_ACTION, JSP_INCLUDE_DIRECTIVE_ACTION, JSP_INVOKE_ACTION, JSP_OUTPUT_ACTION, JSP_PAGE_DIRECTIVE_ACTION, JSP_PARAMS_ACTION, JSP_PARAM_ACTION, JSP_PLUGIN_ACTION, JSP_ROOT_ACTION, JSP_SCRIPTLET_ACTION, JSP_SET_PROPERTY_ACTION, JSP_TAGLIB_DIRECTIVE_ACTION, JSP_TAG_DIRECTIVE_ACTION, JSP_TEXT_ACTION, JSP_TEXT_ACTION_END, JSP_URI, JSP_USE_BEAN_ACTION, JSP_VARIABLE_DIRECTIVE_ACTION, OUTPUT_ACTION, PAGE_DIRECTIVE_ACTION, PARAMS_ACTION, PARAM_ACTION, PLUGIN_ACTION, ROOT_ACTION, SCRIPTLET_ACTION, SET_PROPERTY_ACTION, TAGLIB_DIRECTIVE_ACTION, TAG_DIRECTIVE_ACTION, TEXT_ACTION, URN_JSPTAGDIR, URN_JSPTLD, USE_BEAN_ACTION, VARIABLE_DIRECTIVE_ACTION

Constructor Summary

CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs, Attributes nonTaglibXmlnsAttrs, Attributes taglibAttrs, org.apache.jasper.compiler.Mark start, org.apache.jasper.compiler.Node parent, TagFileInfo tagFileInfo)
CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs, Attributes nonTaglibXmlnsAttrs, Attributes taglibAttrs, org.apache.jasper.compiler.Mark start, org.apache.jasper.compiler.Node parent, TagInfo tagInfo, Class tagHandlerClass)
CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs, org.apache.jasper.compiler.Mark start, org.apache.jasper.compiler.Node parent, TagFileInfo tagFileInfo)
CustomTag(String qName, String prefix, String localName, String uri, Attributes attrs, org.apache.jasper.compiler.Mark start, org.apache.jasper.compiler.Node parent, TagInfo tagInfo, Class tagHandlerClass)

Method Summary

void
accept(Node.Visitor v)
boolean
checkIfAttributeIsJspFragment(String name)
Checks to see if the attribute of the given name is of type JspFragment.
Node.Nodes
getAtETag()
Node.Nodes
getAtSTag()
Node.ChildInfo
getChildInfo()
int
getCustomNestingLevel()
Node.CustomTag
getCustomTagParent()
Node.JspAttribute[]
getJspAttributes()
Integer
getNumCount()
String
getPrefix()
Vector
getScriptingVars(int scope)
TagData
getTagData()
TagFileInfo
getTagFileInfo()
Class
getTagHandlerClass()
String
getTagHandlerPoolName()
TagInfo
getTagInfo()
TagPluginContext
getTagPluginContext()
TagVariableInfo[]
getTagVariableInfos()
String
getURI()
VariableInfo[]
getVariableInfos()
boolean
hasEmptyBody()
Returns true if this custom action has an empty body, and false otherwise.
boolean
implementsBodyTag()
boolean
implementsDynamicAttributes()
boolean
implementsIterationTag()
boolean
implementsSimpleTag()
boolean
implementsTryCatchFinally()
boolean
isTagFile()
void
setAtETag(Node.Nodes eTag)
void
setAtSTag(Node.Nodes sTag)
void
setCustomTagParent(Node.CustomTag n)
void
setJspAttributes(Node.JspAttribute jspAttrs)
void
setNumCount(Integer count)
void
setScriptingVars(Vector vec, int scope)
void
setTagData(TagData tagData)
void
setTagHandlerClass(Class hc)
void
setTagHandlerPoolName(String s)
void
setTagPluginContext(TagPluginContext tagPluginContext)
void
setUseTagPlugin(boolean use)
boolean
useTagPlugin()

Methods inherited from class org.apache.jasper.compiler.Node

getAttributeValue, getAttributes, getBeginJavaLine, getBody, getEndJavaLine, getInnerClassName, getLocalName, getNamedAttributeNode, getNamedAttributeNodes, getNonTaglibXmlnsAttributes, getParent, getQName, getRoot, getStart, getTaglibAttributes, getText, getTextAttribute, isDummy, setAttributes, setBeginJavaLine, setBody, setEndJavaLine, setInnerClassName

Constructor Details

CustomTag

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


CustomTag

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


CustomTag

public CustomTag(String qName,
                 String prefix,
                 String localName,
                 String uri,
                 Attributes attrs,
                 org.apache.jasper.compiler.Mark start,
                 org.apache.jasper.compiler.Node parent,
                 TagFileInfo tagFileInfo)


CustomTag

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

Method Details

accept

public void accept(Node.Visitor v)
            throws JasperException


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)


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()


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 B) 2000 Apache Software Foundation. All Rights Reserved.