Class Node.ScriptingElement

java.lang.Object
org.apache.jasper.compiler.Node
org.apache.jasper.compiler.Node.ScriptingElement
All Implemented Interfaces:
TagConstants
Direct Known Subclasses:
Node.Declaration, Node.Expression, Node.Scriptlet
Enclosing class:
Node

public abstract static class Node.ScriptingElement extends Node
Represents an expression, declaration, or scriptlet
Author:
Kin-man Chung, Jan Luehe, Shawn Bayern, Mark Roth
  • Method Details

    • getText

      public String getText()
      When this node was created from a JSP page in JSP syntax, its text was stored as a String in the "text" field, whereas when this node was created from a JSP document, its text was stored as one or more TemplateText nodes in its body. This method handles either case.
      Overrides:
      getText in class Node
      Returns:
      The text string
    • getStart

      public Mark getStart()
      For the same reason as above, the source line information in the contained TemplateText node should be used.
      Overrides:
      getStart in class Node