Class Node.CustomTag
java.lang.Object
org.apache.jasper.compiler.Node
org.apache.jasper.compiler.Node.ChildInfoBase
org.apache.jasper.compiler.Node.CustomTag
- All Implemented Interfaces:
- TagConstants
- Enclosing class:
- Node
Represents a custom tag
- Author:
- Kin-man Chung, Jan Luehe, Shawn Bayern, Mark Roth
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.jasper.compiler.NodeNode.AttributeDirective, Node.AttributeGenerator, Node.ChildInfo, Node.ChildInfoBase, 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 SummaryFields inherited from class org.apache.jasper.compiler.Nodeattrs, beginJavaLine, body, endJavaLine, innerClassName, localName, namedAttributeNodes, nonTaglibXmlnsAttrs, parent, qName, startMark, taglibAttrs, textFields inherited from interface org.apache.jasper.compiler.TagConstantsATTRIBUTE_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_PARAM_ACTION, JSP_PARAMS_ACTION, JSP_PLUGIN_ACTION, JSP_ROOT_ACTION, JSP_SCRIPTLET_ACTION, JSP_SET_PROPERTY_ACTION, JSP_TAG_DIRECTIVE_ACTION, JSP_TAGLIB_DIRECTIVE_ACTION, JSP_TEXT_ACTION, JSP_TEXT_ACTION_END, JSP_URI, JSP_USE_BEAN_ACTION, JSP_VARIABLE_DIRECTIVE_ACTION, OUTPUT_ACTION, PAGE_DIRECTIVE_ACTION, PARAM_ACTION, PARAMS_ACTION, PLUGIN_ACTION, ROOT_ACTION, SCRIPTLET_ACTION, SET_PROPERTY_ACTION, TAG_DIRECTIVE_ACTION, TAGLIB_DIRECTIVE_ACTION, TEXT_ACTION, URN_JSPTAGDIR, URN_JSPTLD, USE_BEAN_ACTION, VARIABLE_DIRECTIVE_ACTION
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanChecks to see if the attribute of the given name is of type JspFragment.intgetScriptingVars(int scope) Class<?> getURI()booleanA 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 emptybooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAtETag(Node.Nodes eTag) voidsetAtSTag(Node.Nodes sTag) voidvoidsetJspAttributes(Node.JspAttribute[] jspAttrs) voidsetNumCount(Integer count) voidsetScriptingVars(List<Object> vec, int scope) voidsetTagData(TagData tagData) voidsetTagHandlerClass(Class<?> hc) voidvoidsetTagPluginContext(TagPluginContext tagPluginContext) voidsetUseTagPlugin(boolean use) booleanMethods inherited from class org.apache.jasper.compiler.Node.ChildInfoBasegetChildInfoMethods inherited from class org.apache.jasper.compiler.NodegetAttributes, getAttributeValue, getBeginJavaLine, getBody, getEndJavaLine, getInnerClassName, getLocalName, getNamedAttributeNode, getNamedAttributeNodes, getNonTaglibXmlnsAttributes, getParent, getQName, getRoot, getStart, getTaglibAttributes, getText, getTextAttribute, setAttributes, setBeginJavaLine, setBody, setEndJavaLine, setInnerClassName
- 
Method Details- 
accept- Throws:
- JasperException
 
- 
getURI- Returns:
- The URI namespace that this custom action belongs to
 
- 
getPrefix- Returns:
- The tag prefix
 
- 
setJspAttributes
- 
getJspAttributes
- 
setTagData
- 
getTagData
- 
setTagHandlerPoolName
- 
getTagHandlerPoolName
- 
getTagInfo
- 
getTagFileInfo
- 
isTagFilepublic boolean isTagFile()
- 
getTagHandlerClass
- 
setTagHandlerClass
- 
implementsIterationTagpublic boolean implementsIterationTag()
- 
implementsBodyTagpublic boolean implementsBodyTag()
- 
implementsTryCatchFinallypublic boolean implementsTryCatchFinally()
- 
implementsJspIdConsumerpublic boolean implementsJspIdConsumer()
- 
implementsSimpleTagpublic boolean implementsSimpleTag()
- 
implementsDynamicAttributespublic boolean implementsDynamicAttributes()
- 
getTagVariableInfos
- 
getVariableInfos
- 
setCustomTagParent
- 
getCustomTagParent
- 
setNumCount
- 
getNumCount
- 
setScriptingVars
- 
getScriptingVars
- 
getCustomNestingLevelpublic int getCustomNestingLevel()
- 
checkIfAttributeIsJspFragmentChecks to see if the attribute of the given name is of type JspFragment.- Parameters:
- name- The attribute to check
- Returns:
- trueif it is a JspFragment
 
- 
setUseTagPluginpublic void setUseTagPlugin(boolean use) 
- 
useTagPluginpublic boolean useTagPlugin()
- 
setTagPluginContext
- 
getTagPluginContext
- 
setAtSTag
- 
getAtSTag
- 
setAtETag
- 
getAtETag
- 
hasEmptyBodypublic 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:
- trueif this custom action has an empty body, and- falseotherwise.
 
 
-