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)
        Sets the text content of this template text node.
        Parameters:
        text - The text content to set
      • rtrim

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

        public boolean isAllSpace()
        Checks if this template text contains whitespace only.
        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()
        Returns the extra source-to-Java line mappings for this template text.
        Returns:
        The extra SMAP entries, or null if none