Class Node.TemplateText

  • All Implemented Interfaces:
    TagConstants
    Enclosing class:
    Node

    public static class Node.TemplateText
    extends Node
    Represents a template text string
    • Method Detail

      • ltrim

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

        public void setText​(java.lang.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 java.util.ArrayList<java.lang.Integer> getExtraSmap()