abstract class Node extends java.lang.Object implements TagConstants
Modifier and Type | Class and Description |
---|---|
static class |
Node.AttributeDirective
Represents an attribute directive
|
static class |
Node.AttributeGenerator
Used as a placeholder for the evaluation code of a custom action
attribute (used by the tag plugin machinery only).
|
static class |
Node.ChildInfo
Collected information about child elements.
|
static class |
Node.Comment
Represents a Jsp comment
Comments are kept for completeness.
|
static class |
Node.CustomTag
Represents a custom tag
|
static class |
Node.Declaration
Represents a declaration
|
static class |
Node.DoBodyAction
Represents a
|
static class |
Node.ELExpression
Represents an EL expression.
|
static class |
Node.Expression
Represents an expression.
|
static class |
Node.FallBackAction
Represents a fallback action
|
static class |
Node.ForwardAction
Represents a forward action
|
static class |
Node.GetProperty
Represents a getProperty action
|
static class |
Node.IncludeAction
Represents an include action
|
static class |
Node.IncludeDirective
Represents an include directive
|
static class |
Node.InvokeAction
Represents a
|
static class |
Node.JspAttribute
Represents attributes that can be request time expressions.
|
static class |
Node.JspBody
Represents a JspBody node (<jsp:body>)
|
static class |
Node.JspElement
Represents a
|
static class |
Node.JspOutput
Represents a
|
static class |
Node.JspRoot
Represents the root of a Jsp document (XML syntax)
|
static class |
Node.JspText
Represents the body of a <jsp:text> element
|
static class |
Node.NamedAttribute
Represents a Named Attribute (<jsp:attribute>)
|
static class |
Node.Nodes
An ordered list of Node, used to represent the body of an element, or
a jsp page of jsp document.
|
static class |
Node.PageDirective
Represents a page directive
|
static class |
Node.ParamAction
Represents a param action
|
static class |
Node.ParamsAction
Represents a params action
|
static class |
Node.PlugIn
Represents a plugin action
|
static class |
Node.Root
Represents the root of a Jsp page or Jsp document
|
static class |
Node.ScriptingElement
Represents an expression, declaration, or scriptlet
|
static class |
Node.Scriptlet
Represents a scriptlet
|
static class |
Node.SetProperty
Represents a setProperty action
|
static class |
Node.TagDirective
Represents a tag directive
|
static class |
Node.TaglibDirective
Represents a custom taglib directive
|
static class |
Node.TemplateText
Represents a template text string
|
static class |
Node.UninterpretedTag
Represents an uninterpreted tag, from a Jsp document
|
static class |
Node.UseBean
Represents a useBean action
|
static class |
Node.VariableDirective
Represents a variable directive
|
static class |
Node.Visitor
A visitor class for visiting the node.
|
Modifier and Type | Field and Description |
---|---|
protected org.xml.sax.Attributes |
attrs |
protected int |
beginJavaLine |
protected Node.Nodes |
body |
protected int |
endJavaLine |
protected java.lang.String |
innerClassName |
private boolean |
isDummy |
protected java.lang.String |
localName |
protected Node.Nodes |
namedAttributeNodes |
protected org.xml.sax.Attributes |
nonTaglibXmlnsAttrs |
protected Node |
parent |
protected java.lang.String |
qName |
protected Mark |
startMark |
protected org.xml.sax.Attributes |
taglibAttrs |
protected java.lang.String |
text |
private static javax.servlet.jsp.tagext.VariableInfo[] |
ZERO_VARIABLE_INFO |
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_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
Constructor and Description |
---|
Node()
Zero-arg Constructor.
|
Node(Mark start,
Node parent)
Constructor.
|
Node(java.lang.String qName,
java.lang.String localName,
org.xml.sax.Attributes attrs,
org.xml.sax.Attributes nonTaglibXmlnsAttrs,
org.xml.sax.Attributes taglibAttrs,
Mark start,
Node parent)
Constructor for Nodes parsed from XML syntax.
|
Node(java.lang.String qName,
java.lang.String localName,
org.xml.sax.Attributes attrs,
Mark start,
Node parent)
Constructor for Nodes parsed from standard syntax.
|
Node(java.lang.String qName,
java.lang.String localName,
Mark start,
Node parent)
Constructor.
|
Node(java.lang.String qName,
java.lang.String localName,
java.lang.String text,
Mark start,
Node parent) |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
accept(Node.Visitor v)
Selects and invokes a method in the visitor class based on the node
type.
|
private void |
addToParent(Node parent) |
org.xml.sax.Attributes |
getAttributes() |
java.lang.String |
getAttributeValue(java.lang.String name) |
int |
getBeginJavaLine() |
Node.Nodes |
getBody() |
int |
getEndJavaLine() |
java.lang.String |
getInnerClassName() |
java.lang.String |
getLocalName() |
Node.NamedAttribute |
getNamedAttributeNode(java.lang.String name)
Searches all subnodes of this node for jsp:attribute standard
actions with the given name, and returns the NamedAttribute node
of the matching named attribute, nor null if no such node is found.
|
Node.Nodes |
getNamedAttributeNodes()
Searches all subnodes of this node for jsp:attribute standard
actions, and returns that set of nodes as a Node.Nodes object.
|
org.xml.sax.Attributes |
getNonTaglibXmlnsAttributes() |
Node |
getParent() |
java.lang.String |
getQName() |
Node.Root |
getRoot() |
Mark |
getStart() |
org.xml.sax.Attributes |
getTaglibAttributes() |
java.lang.String |
getText() |
java.lang.String |
getTextAttribute(java.lang.String name)
Get the attribute that is non request time expression, either
from the attribute of the node, or from a jsp:attrbute
|
boolean |
isDummy() |
void |
setAttributes(org.xml.sax.Attributes attrs) |
void |
setBeginJavaLine(int begin) |
void |
setBody(Node.Nodes body) |
void |
setEndJavaLine(int end) |
void |
setInnerClassName(java.lang.String icn) |
private static final javax.servlet.jsp.tagext.VariableInfo[] ZERO_VARIABLE_INFO
protected org.xml.sax.Attributes attrs
protected org.xml.sax.Attributes taglibAttrs
protected org.xml.sax.Attributes nonTaglibXmlnsAttrs
protected Node.Nodes body
protected java.lang.String text
protected Mark startMark
protected int beginJavaLine
protected int endJavaLine
protected Node parent
protected Node.Nodes namedAttributeNodes
protected java.lang.String qName
protected java.lang.String localName
protected java.lang.String innerClassName
private boolean isDummy
public Node()
public Node(Mark start, Node parent)
start
- The location of the jsp pageparent
- The enclosing nodepublic Node(java.lang.String qName, java.lang.String localName, Mark start, Node parent)
qName
- The action's qualified namelocalName
- The action's local namestart
- The location of the jsp pageparent
- The enclosing nodepublic Node(java.lang.String qName, java.lang.String localName, org.xml.sax.Attributes attrs, Mark start, Node parent)
qName
- The action's qualified namelocalName
- The action's local nameattrs
- The attributes for this nodestart
- The location of the jsp pageparent
- The enclosing nodepublic Node(java.lang.String qName, java.lang.String localName, org.xml.sax.Attributes attrs, org.xml.sax.Attributes nonTaglibXmlnsAttrs, org.xml.sax.Attributes taglibAttrs, Mark start, Node parent)
qName
- The action's qualified namelocalName
- The action's local nameattrs
- The action's attributes whose name does not start with
xmlnsnonTaglibXmlnsAttrs
- The action's xmlns attributes that do not
represent tag librariestaglibAttrs
- The action's xmlns attributes that represent tag
librariesstart
- The location of the jsp pageparent
- The enclosing nodepublic java.lang.String getQName()
public java.lang.String getLocalName()
public org.xml.sax.Attributes getAttributes()
public org.xml.sax.Attributes getTaglibAttributes()
public org.xml.sax.Attributes getNonTaglibXmlnsAttributes()
public void setAttributes(org.xml.sax.Attributes attrs)
public java.lang.String getAttributeValue(java.lang.String name)
public java.lang.String getTextAttribute(java.lang.String name)
public Node.NamedAttribute getNamedAttributeNode(java.lang.String name)
This should always be called and only be called for nodes that accept dynamic runtime attribute expressions.
public Node.Nodes getNamedAttributeNodes()
public Node.Nodes getBody()
public void setBody(Node.Nodes body)
public java.lang.String getText()
public Mark getStart()
public Node getParent()
public int getBeginJavaLine()
public void setBeginJavaLine(int begin)
public int getEndJavaLine()
public void setEndJavaLine(int end)
public boolean isDummy()
public Node.Root getRoot()
public java.lang.String getInnerClassName()
public void setInnerClassName(java.lang.String icn)
abstract void accept(Node.Visitor v) throws JasperException
v
- The visitor classJasperException
private void addToParent(Node parent)