Class SinglentonTextPiece

All Implemented Interfaces:
Cloneable, Comparable<TextPiece>

@Internal public class SinglentonTextPiece extends TextPiece
  • Constructor Details

    • SinglentonTextPiece

      public SinglentonTextPiece(StringBuilder buffer)
  • Method Details

    • 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.
    • getStart

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

      public String toString()
      Overrides:
      toString in class TextPiece