Class Node
java.lang.Object
org.apache.jasper.compiler.Node
- All Implemented Interfaces:
- TagConstants
- Direct Known Subclasses:
- Node.AttributeDirective,- Node.AttributeGenerator,- Node.ChildInfoBase,- Node.Comment,- Node.DoBodyAction,- Node.ELExpression,- Node.FallBackAction,- Node.ForwardAction,- Node.GetProperty,- Node.IncludeAction,- Node.IncludeDirective,- Node.InvokeAction,- Node.JspElement,- Node.JspOutput,- Node.JspRoot,- Node.JspText,- Node.PageDirective,- Node.ParamAction,- Node.ParamsAction,- Node.PlugIn,- Node.Root,- Node.ScriptingElement,- Node.SetProperty,- Node.TagDirective,- Node.TaglibDirective,- Node.TemplateText,- Node.UninterpretedTag,- Node.UseBean,- Node.VariableDirective
An internal data representation of a JSP page or a JSP document (XML). Also included here is a visitor class for
 traversing nodes.
- Author:
- Kin-man Chung, Jan Luehe, Shawn Bayern, Mark Roth
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classRepresents an attribute directivestatic classUsed as a placeholder for the evaluation code of a custom action attribute (used by the tag plugin machinery only).static classCollected information about child elements.static classstatic classRepresents a Jsp comment Comments are kept for completeness.static classRepresents a custom tagstatic classRepresents a declarationstatic classRepresents a <jsp:doBody> tag file actionstatic classRepresents an EL expression.static classRepresents an expression.static classRepresents a fallback actionstatic classRepresents a forward actionstatic classRepresents a getProperty actionstatic classRepresents an include actionstatic classRepresents an include directivestatic classRepresents a <jsp:invoke> tag file actionstatic classRepresents attributes that can be request time expressions.static classRepresents a JspBody node (<jsp:body>)static classRepresents a <jsp:element>.static classRepresents a <jsp:output>.static classRepresents the root of a Jsp document (XML syntax)static classRepresents the body of a <jsp:text> elementstatic classRepresents a Named Attribute (<jsp:attribute>)static classAn ordered list of Node, used to represent the body of an element, or a jsp page of jsp document.static classRepresents a page directivestatic classRepresents a param actionstatic classRepresents a params actionstatic classRepresents a plugin actionstatic classRepresents the root of a Jsp page or Jsp documentstatic classRepresents an expression, declaration, or scriptletstatic classRepresents a scriptletstatic classRepresents a setProperty actionstatic classRepresents a tag directivestatic classRepresents a custom taglib directivestatic classRepresents a template text stringstatic classRepresents an uninterpreted tag, from a Jsp documentstatic classRepresents a useBean actionstatic classRepresents a variable directivestatic classA visitor class for visiting the node.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Attributesprotected intprotected Node.Nodesprotected intprotected Stringprotected Stringprotected Node.Nodesprotected Attributesprotected Nodeprotected Stringprotected Markprotected Attributesprotected StringFields 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 TypeMethodDescriptiongetAttributeValue(String name) intgetBody()intgetNamedAttributeNode(String name) Searches all sub-nodes of this node for jsp:attribute standard actions with the given name.Searches all subnodes of this node for jsp:attribute standard actions, and returns that set of nodes as a Node.Nodes object.getQName()getRoot()getStart()getText()getTextAttribute(String name) Get the attribute that is non request time expression, either from the attribute of the node, or from a jsp:attributevoidsetAttributes(Attributes attrs) voidsetBeginJavaLine(int begin) voidsetBody(Node.Nodes body) voidsetEndJavaLine(int end) voidsetInnerClassName(String icn) 
- 
Field Details- 
attrs
- 
taglibAttrs
- 
nonTaglibXmlnsAttrs
- 
body
- 
text
- 
startMark
- 
beginJavaLineprotected int beginJavaLine
- 
endJavaLineprotected int endJavaLine
- 
parent
- 
namedAttributeNodes
- 
qName
- 
localName
- 
innerClassName
 
- 
- 
Method Details- 
getQName
- 
getLocalName
- 
getAttributes
- 
getTaglibAttributes
- 
getNonTaglibXmlnsAttributes
- 
setAttributes
- 
getAttributeValue
- 
getTextAttribute
- 
getNamedAttributeNodeSearches all sub-nodes of this node for jsp:attribute standard actions with the given name.This should always be called and only be called for nodes that accept dynamic runtime attribute expressions. - Parameters:
- name- The name of the attribute
- Returns:
- the NamedAttribute node of the matching named attribute, nor null if no such node is found.
 
- 
getNamedAttributeNodesSearches all subnodes of this node for jsp:attribute standard actions, and returns that set of nodes as a Node.Nodes object.- Returns:
- Possibly empty Node.Nodes object containing any jsp:attribute subnodes of this Node
 
- 
getBody
- 
setBody
- 
getText
- 
getStart
- 
getParent
- 
getBeginJavaLinepublic int getBeginJavaLine()
- 
setBeginJavaLinepublic void setBeginJavaLine(int begin) 
- 
getEndJavaLinepublic int getEndJavaLine()
- 
setEndJavaLinepublic void setEndJavaLine(int end) 
- 
getRoot
- 
getInnerClassName
- 
setInnerClassName
 
-