Class Segment.Text

    • Field Detail

      • chars

        @NotNull
        protected final @NotNull java.lang.CharSequence chars
    • Constructor Detail

      • Text

        public Text​(int pos,
                    byte[] bytes,
                    int byteOffset,
                    int indexOffset)
    • Method Detail

      • length

        public int length()
        Specified by:
        length in class Segment
      • charAt

        public char charAt​(int index)
        Description copied from class: Segment
        get char at index
        Specified by:
        charAt in class Segment
        Parameters:
        index - index in segmented sequence coordinates. index offset must be subtracted to convert to segment coordinates
        Returns:
        character at given index in segmented sequence
      • isBase

        public boolean isBase()
        Specified by:
        isBase in class Segment
      • isAnchor

        public boolean isAnchor()
        Specified by:
        isAnchor in class Segment
      • isText

        public boolean isText()
        Specified by:
        isText in class Segment
      • textType

        int textType()
      • getCharSequence

        @NotNull
        public @NotNull java.lang.CharSequence getCharSequence()
        Specified by:
        getCharSequence in class Segment