Class SinglentonTextPiece

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Comparable<TextPiece>

    @Internal
    public class SinglentonTextPiece
    extends TextPiece
    • Constructor Detail

      • SinglentonTextPiece

        public SinglentonTextPiece​(java.lang.StringBuilder buffer)
    • Method Detail

      • bytesLength

        public int bytesLength()
        Description copied from class: TextPiece
        Returns the length, in bytes
        Overrides:
        bytesLength in class TextPiece
      • characterLength

        public int characterLength()
        Description copied from class: TextPiece
        Returns the length, in characters
        Overrides:
        characterLength in class TextPiece
      • getCP

        public int getCP()
        Description copied from class: TextPiece
        Returns the character position we start at.
        Overrides:
        getCP in class TextPiece
      • getEnd

        public int getEnd()
        Overrides:
        getEnd in class PropertyNode<TextPiece>
        Returns:
        The offset of the end of this property's text.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class TextPiece