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
Author:
Kin-man Chung, Jan Luehe, Shawn Bayern, Mark Roth
  • Method Details

    • accept

      public void accept(Node.Visitor v) throws JasperException
      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 position 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()