Class Node.TemplateText

java.lang.Object
org.apache.jasper.compiler.Node
org.apache.jasper.compiler.Node.TemplateText
All Implemented Interfaces:
TagConstants
Enclosing class:
Node

public static class Node.TemplateText extends Node
Represents a template text string
  • Field Details

  • Constructor Details

    • TemplateText

      public TemplateText(String text, Mark start, Node parent)
  • Method Details

    • accept

      public void accept(Node.Visitor v) throws JasperException
      Description copied from class: Node
      Selects and invokes a method in the visitor class based on the node type. This is abstract and should be overrode by the extending classes.
      Specified by:
      accept in class Node
      Parameters:
      v - The visitor class
      Throws:
      JasperException
    • ltrim

      public void ltrim()
      Trim all whitespace from the left of the template text
    • setText

      public void setText(String text)
    • rtrim

      public void rtrim()
      Trim all whitespace from the right of the template text
    • isAllSpace

      public boolean isAllSpace()
      Returns true if this template text contains whitespace only.
    • addSmap

      public void addSmap(int srcLine)
      Add a source to Java line mapping
      Parameters:
      srcLine - The postion of the source line, relative to the line at the start of this node. The corresponding java line is assumed to be consecutive, i.e. one more than the last.
    • getExtraSmap

      public ArrayList<Integer> getExtraSmap()