Class Text

    • Constructor Detail

      • Text

        Text​(java.lang.CharSequence text)
      • Text

        Text​(java.lang.CharSequence text,
             java.lang.String templateName,
             int line,
             int col)
    • Method Detail

      • getText

        public java.lang.String getText()
        Description copied from interface: IText

        Returns the Text as a String.

        Specified by:
        getText in interface IText
        Returns:
        the text.
      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Specified by:
        subSequence in interface java.lang.CharSequence
      • write

        public void write​(java.io.Writer writer)
                   throws java.io.IOException
        Description copied from interface: ITemplateEvent

        Writes this event to the specified Writer.

        Template output performed at OutputTemplateHandler is done by calling these methods at each of the events resulting from template processing.

        Specified by:
        write in interface ITemplateEvent
        Parameters:
        writer - the writer this event should be written to.
        Throws:
        java.io.IOException - if an input/output exception occurs.
      • asEngineText

        static Text asEngineText​(IText text)