Class SequenceBuilder

    • Method Detail

      • getBaseSequence

        @NotNull
        public @NotNull BasedSequence getBaseSequence()
      • getLastRangeOrNull

        @Nullable
        public @Nullable Range getLastRangeOrNull()
      • append

        @NotNull
        public @NotNull SequenceBuilder append​(int startOffset,
                                               int endOffset)
      • addByOffsets

        @NotNull
        public @NotNull SequenceBuilder addByOffsets​(int startOffset,
                                                     int endOffset)
      • addByLength

        @NotNull
        public @NotNull SequenceBuilder addByLength​(int startOffset,
                                                    int textLength)
      • toSequence

        @NotNull
        public @NotNull BasedSequence toSequence​(@NotNull
                                                 @NotNull BasedSequence altSequence)
        Construct sequence from this builder using another based sequence which is character identical to this builder's baseSeq
        Parameters:
        altSequence - based sequence which is character identical to this builder's baseSeq
        Returns:
        builder with offsets mapped to altSequence
      • toSequence

        @NotNull
        public @NotNull BasedSequence toSequence​(@NotNull
                                                 @NotNull BasedSequence altSequence,
                                                 @Nullable
                                                 @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimStart,
                                                 @Nullable
                                                 @Nullable com.vladsch.flexmark.util.misc.CharPredicate ignoreCharDiff)
        Construct sequence from this builder using another based sequence which is character identical to this builder's baseSeq
        Parameters:
        altSequence - based sequence which is character identical to this builder's baseSeq
        trimStart - character set of characters to trim
        ignoreCharDiff - chars which should be treated as equivalent for verification purposes (Space, Tab, EOL, usually)
        Returns:
        builder with offsets mapped to altSequence
      • toSequenceByIndex

        @NotNull
        public @NotNull BasedSequence toSequenceByIndex​(@NotNull
                                                        @NotNull BasedSequence altSequence,
                                                        @Nullable
                                                        @Nullable com.vladsch.flexmark.util.misc.CharPredicate trimStart,
                                                        @Nullable
                                                        @Nullable com.vladsch.flexmark.util.misc.CharPredicate ignoreCharDiff)
        Construct sequence from this builder using another based sequence which is character identical to this builder's baseSeq by length
        Parameters:
        altSequence - based sequence which is character identical to this builder's baseSeq
        trimStart - character set of characters to trim
        ignoreCharDiff - chars which should be treated as equivalent for verification purposes (Space, Tab, EOL, usually)
        Returns:
        builder with offsets mapped to altSequence
      • toStringWithRanges

        @NotNull
        public @NotNull String toStringWithRanges()
      • toStringWithRanges

        @NotNull
        public @NotNull String toStringWithRanges​(boolean toVisibleWhiteSpace)
      • toStringNoAddedSpaces

        @NotNull
        public @NotNull String toStringNoAddedSpaces()