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.ForwardAction, Node.GetProperty, Node.IncludeAction, Node.IncludeDirective, Node.InvokeAction, Node.JspElement, Node.JspOutput, Node.JspRoot, Node.JspText, Node.PageDirective, Node.ParamAction, Node.Root, Node.ScriptingElement, Node.SetProperty, Node.TagDirective, Node.TaglibDirective, Node.TemplateText, Node.UninterpretedTag, Node.UseBean, Node.VariableDirective

public abstract class Node extends Object implements TagConstants
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
  • Field Details Link icon

    • attrs Link icon

      protected Attributes attrs
    • taglibAttrs Link icon

      protected Attributes taglibAttrs
    • nonTaglibXmlnsAttrs Link icon

      protected Attributes nonTaglibXmlnsAttrs
    • body Link icon

      protected Node.Nodes body
    • text Link icon

      protected String text
    • startMark Link icon

      protected Mark startMark
    • beginJavaLine Link icon

      protected int beginJavaLine
    • endJavaLine Link icon

      protected int endJavaLine
    • parent Link icon

      protected Node parent
    • namedAttributeNodes Link icon

      protected Node.Nodes namedAttributeNodes
    • qName Link icon

      protected String qName
    • localName Link icon

      protected String localName
    • innerClassName Link icon

      protected String innerClassName
  • Method Details Link icon

    • getQName Link icon

      public String getQName()
    • getLocalName Link icon

      public String getLocalName()
    • getAttributes Link icon

      public Attributes getAttributes()
    • getTaglibAttributes Link icon

      public Attributes getTaglibAttributes()
    • getNonTaglibXmlnsAttributes Link icon

      public Attributes getNonTaglibXmlnsAttributes()
    • setAttributes Link icon

      public void setAttributes(Attributes attrs)
    • getAttributeValue Link icon

      public String getAttributeValue(String name)
    • getTextAttribute Link icon

      public String getTextAttribute(String name)
      Get the attribute that is non request time expression, either from the attribute of the node, or from a jsp:attribute
      Parameters:
      name - The name of the attribute
      Returns:
      The attribute value
    • getNamedAttributeNode Link icon

      public Node.NamedAttribute getNamedAttributeNode(String name)
      Searches 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.
    • getNamedAttributeNodes Link icon

      public 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.
      Returns:
      Possibly empty Node.Nodes object containing any jsp:attribute subnodes of this Node
    • getBody Link icon

      public Node.Nodes getBody()
    • setBody Link icon

      public void setBody(Node.Nodes body)
    • getText Link icon

      public String getText()
    • getStart Link icon

      public Mark getStart()
    • getParent Link icon

      public Node getParent()
    • getBeginJavaLine Link icon

      public int getBeginJavaLine()
    • setBeginJavaLine Link icon

      public void setBeginJavaLine(int begin)
    • getEndJavaLine Link icon

      public int getEndJavaLine()
    • setEndJavaLine Link icon

      public void setEndJavaLine(int end)
    • getRoot Link icon

      public Node.Root getRoot()
    • getInnerClassName Link icon

      public String getInnerClassName()
    • setInnerClassName Link icon

      public void setInnerClassName(String icn)