Class Node.TemplateText

  • All Implemented Interfaces:
    TagConstants
    Enclosing class:
    Node

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

      • extraSmap

        private java.util.ArrayList<java.lang.Integer> extraSmap
    • Constructor Detail

      • TemplateText

        public TemplateText​(java.lang.String text,
                            Mark start,
                            Node parent)
    • Method Detail

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