public class SequenceBuilder extends Object implements ISequenceBuilder<SequenceBuilder,BasedSequence>
| Modifier and Type | Method and Description |
|---|---|
@NotNull SequenceBuilder |
addByLength(int startOffset,
int textLength) |
@NotNull SequenceBuilder |
addByOffsets(int startOffset,
int endOffset) |
@NotNull SequenceBuilder |
addRange(@NotNull Range range) |
@NotNull SequenceBuilder |
append(char c) |
@NotNull SequenceBuilder |
append(char c,
int count) |
@NotNull SequenceBuilder |
append(@Nullable CharSequence chars,
int startIndex,
int endIndex) |
@NotNull SequenceBuilder |
append(int startOffset,
int endOffset) |
@NotNull SequenceBuilder |
append(@NotNull Range chars) |
char |
charAt(int index) |
static @NotNull SequenceBuilder |
emptyBuilder(@NotNull BasedSequence base) |
static @NotNull SequenceBuilder |
emptyBuilder(@NotNull BasedSequence base,
int options) |
static @NotNull SequenceBuilder |
emptyBuilder(@NotNull BasedSequence base,
int options,
@NotNull SegmentOptimizer optimizer) |
static @NotNull SequenceBuilder |
emptyBuilder(@NotNull BasedSequence base,
@NotNull SegmentOptimizer optimizer) |
@NotNull BasedSequence |
getBaseSequence() |
@NotNull SequenceBuilder |
getBuilder() |
@Nullable Range |
getLastRangeOrNull() |
@NotNull BasedSegmentBuilder |
getSegmentBuilder() |
@Nullable BasedSequence |
getSingleBasedSequence()
NOTE: returns non-null value if the underlying
ISegmentBuilder.getBaseSubSequenceRange() returns non-null value |
int |
length() |
@NotNull BasedSequence |
toSequence() |
@NotNull BasedSequence |
toSequence(@NotNull BasedSequence altSequence)
Construct sequence from this builder using another based sequence which is character identical to this builder's baseSeq
|
@NotNull BasedSequence |
toSequence(@NotNull BasedSequence altSequence,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimStart,
@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
|
@NotNull BasedSequence |
toSequenceByIndex(@NotNull BasedSequence altSequence,
@Nullable com.vladsch.flexmark.util.misc.CharPredicate trimStart,
@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
|
@NotNull String |
toString() |
@NotNull String |
toStringNoAddedSpaces() |
@NotNull String |
toStringWithRanges() |
@NotNull String |
toStringWithRanges(boolean toVisibleWhiteSpace) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, append, append, append, isEmpty, isNotEmpty@NotNull public @NotNull BasedSequence getBaseSequence()
@NotNull public @NotNull BasedSegmentBuilder getSegmentBuilder()
@Nullable public @Nullable Range getLastRangeOrNull()
@Nullable public @Nullable BasedSequence getSingleBasedSequence()
ISequenceBuilderISegmentBuilder.getBaseSubSequenceRange() returns non-null valuegetSingleBasedSequence in interface ISequenceBuilder<SequenceBuilder,BasedSequence>@NotNull public @NotNull SequenceBuilder getBuilder()
getBuilder in interface ISequenceBuilder<SequenceBuilder,BasedSequence>public char charAt(int index)
charAt in interface ISequenceBuilder<SequenceBuilder,BasedSequence>@NotNull public @NotNull SequenceBuilder append(@Nullable @Nullable CharSequence chars, int startIndex, int endIndex)
append in interface ISequenceBuilder<SequenceBuilder,BasedSequence>append in interface Appendable@NotNull public @NotNull SequenceBuilder append(char c)
append in interface ISequenceBuilder<SequenceBuilder,BasedSequence>append in interface Appendable@NotNull public @NotNull SequenceBuilder append(char c, int count)
append in interface ISequenceBuilder<SequenceBuilder,BasedSequence>@NotNull public @NotNull SequenceBuilder append(int startOffset, int endOffset)
@NotNull public @NotNull SequenceBuilder append(@NotNull @NotNull Range chars)
@NotNull public @NotNull SequenceBuilder addRange(@NotNull @NotNull Range range)
@NotNull public @NotNull SequenceBuilder addByOffsets(int startOffset, int endOffset)
@NotNull public @NotNull SequenceBuilder addByLength(int startOffset, int textLength)
@NotNull public @NotNull BasedSequence toSequence()
toSequence in interface ISequenceBuilder<SequenceBuilder,BasedSequence>@NotNull public @NotNull BasedSequence toSequence(@NotNull @NotNull BasedSequence altSequence)
altSequence - based sequence which is character identical to this builder's baseSeq@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)
altSequence - based sequence which is character identical to this builder's baseSeqtrimStart - character set of characters to trimignoreCharDiff - chars which should be treated as equivalent for verification purposes (Space, Tab, EOL, usually)@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)
altSequence - based sequence which is character identical to this builder's baseSeqtrimStart - character set of characters to trimignoreCharDiff - chars which should be treated as equivalent for verification purposes (Space, Tab, EOL, usually)public int length()
length in interface ISequenceBuilder<SequenceBuilder,BasedSequence>@NotNull public @NotNull String toStringWithRanges()
@NotNull public @NotNull String toStringWithRanges(boolean toVisibleWhiteSpace)
@NotNull public @NotNull String toStringNoAddedSpaces()
@NotNull public static @NotNull SequenceBuilder emptyBuilder(@NotNull @NotNull BasedSequence base)
@NotNull public static @NotNull SequenceBuilder emptyBuilder(@NotNull @NotNull BasedSequence base, @NotNull @NotNull SegmentOptimizer optimizer)
@NotNull public static @NotNull SequenceBuilder emptyBuilder(@NotNull @NotNull BasedSequence base, int options)
@NotNull public static @NotNull SequenceBuilder emptyBuilder(@NotNull @NotNull BasedSequence base, int options, @NotNull @NotNull SegmentOptimizer optimizer)
Copyright © 2020. All rights reserved.