| Modifier and Type | Field and Description |
|---|---|
| protected final BasedSequence | |
| protected final int | |
| protected final int | |
| protected final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | allOptions(int
option flags options)Implements com. Options test for options for this sequence default reports true for global default options (if any) , variation available on BasedSequenceWithOptions |
| public final boolean | anyOptions(int
option flags options)Implements com. Options test for options for this sequence default reports true for global default options (if any) , variation available on BasedSequenceWithOptions |
| public final @NotNull BasedSequence | baseSubSequence(int
offset from 0 of original sequence startIndex, int offset from 0 of original sequence endIndex)Overrides com. Implements com. Get a portion of this sequence's base sequence Note this means that if this sequence applies modifications to the original sequence then these modifications are NOT be applied to the returned sequence. |
| public static BasedSequence | Returns: based sequence of segments. Result is a sequence which looks like all the segments were concatenated, while still maintaining the original offset for each character when usinggetIndexOffset(int)(int index)base sequence for the segments basedSequence, @NotNull Iterable<? extends BasedSequence> list of based sequences to put into a based sequence segments)Use |
| public static BasedSequence | |
| public static BasedSequence | |
| public final @NotNull Object | getBase()
Implements com. Get the underlying object on which this sequence contents are based |
| public final @NotNull BasedSequence | getBaseSequence()
Implements com. Get the base sequence for the text |
| public final int | Returns: end in base sequenceImplements com. Get the end offset in the base sequence Note this is the endOffset determined when the sequence was built from segments and may differ from the endOffset of the last based segment in this sequence |
| public final <T> T | getOption(DataKeyBase<T>
in options dataKey)Implements com. Options holder, default has none, only available on BasedSequenceWithOptions |
| public final int | getOptionFlags()
Implements com. Options test for options for this sequence default reports true for global default options (if any) , variation available on BasedSequenceWithOptions |
| public final @Nullable DataHolder | getOptions()
Implements com. Options holder, default has none, only available on BasedSequenceWithOptions |
| public final @NotNull Range | getSourceRange()
Implements com. Get the range of this sequence in original |
| public final int | Returns: start in base sequenceImplements com. Get the start in the base sequence for this segmented sequence. |
| public final int | |
| public static BasedSequence | Returns: based sequence of segments. Result is a sequence which looks like all the segments were concatenated, while still maintaining the original offset for each character when usinggetIndexOffset(int)(int index)base sequence for the segments basedSequence, @NotNull Iterable<? extends BasedSequence> list of based sequences to put into a based sequence segments)
Deprecated
use
BasedSequence#getBuilder() and then SequenceBuilder#addAll(Iterable) or if you know which are based segments vs. out of base Strings then use BasedSegmentBuilder to construct segments directly.
|
| public static BasedSequence |
| baseSeq | back to summary |
|---|---|
| protected final BasedSequence baseSeq | |
| endOffset | back to summary |
|---|---|
| protected final int endOffset | |
| length | back to summary |
|---|---|
| protected final int length | |
| startOffset | back to summary |
|---|---|
| protected final int startOffset | |
| SegmentedSequence | back to summary |
|---|---|
| protected SegmentedSequence(BasedSequence baseSeq, int startOffset, int endOffset, int length) | |
| allOptions | back to summary |
|---|---|
| public final boolean allOptions(int options) Implements com. Doc from com. Options test for options for this sequence default reports true for global default options (if any) , variation available on BasedSequenceWithOptions
| |
| anyOptions | back to summary |
|---|---|
| public final boolean anyOptions(int options) Implements com. Doc from com. Options test for options for this sequence default reports true for global default options (if any) , variation available on BasedSequenceWithOptions
| |
| baseSubSequence | back to summary |
|---|---|
| public final @NotNull BasedSequence baseSubSequence(int startIndex, int endIndex) Overrides com. Implements com. Doc from com. Get a portion of this sequence's base sequence Note this means that if this sequence applies modifications to the original sequence then these modifications are NOT be applied to the returned sequence. Note It should only be implemented in classes which provide base sequences such as
| |
| create | back to summary |
|---|---|
| public static BasedSequence create(BasedSequence basedSequence, @NotNull Iterable<? extends BasedSequence> segments) Use Use only if you absolutely need to use this old method because it calls the builder.addAll() for all the segments anyway. If you need the location where content would have been use the FencedCodeBlock.getOpeningMarker().getEndOffset() + 1
| |
| create | back to summary |
|---|---|
| public static BasedSequence create(BasedSequence... segments) | |
| create | back to summary |
|---|---|
| public static BasedSequence create(SequenceBuilder builder) | |
| getBase | back to summary |
|---|---|
| public final @NotNull Object getBase() Implements com. Doc from com. Get the underlying object on which this sequence contents are based | |
| getBaseSequence | back to summary |
|---|---|
| public final @NotNull BasedSequence getBaseSequence() Implements com. Doc from com. Get the base sequence for the text
| |
| getEndOffset | back to summary |
|---|---|
| public final int getEndOffset() Implements com. Get the end offset in the base sequence Note this is the endOffset determined when the sequence was built from segments and may differ from the endOffset of the last based segment in this sequence
| |
| getOption | back to summary |
|---|---|
| public final <T> T getOption(DataKeyBase<T> dataKey) Implements com. Doc from com. Options holder, default has none, only available on BasedSequenceWithOptions
| |
| getOptionFlags | back to summary |
|---|---|
| public final int getOptionFlags() Implements com. Doc from com. Options test for options for this sequence default reports true for global default options (if any) , variation available on BasedSequenceWithOptions
| |
| getOptions | back to summary |
|---|---|
| public final @Nullable DataHolder getOptions() Implements com. Doc from com. Options holder, default has none, only available on BasedSequenceWithOptions
| |
| getSourceRange | back to summary |
|---|---|
| public final @NotNull Range getSourceRange() Implements com. Doc from com. Get the range of this sequence in original | |
| getStartOffset | back to summary |
|---|---|
| public final int getStartOffset() Implements com. Get the start in the base sequence for this segmented sequence. Note this is the startOffset determined when the sequence was built from segments and may differ from the startOffset of the first based segment in this sequence
| |
| length | back to summary |
|---|---|
| public final int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| of | back to summary |
|---|---|
| public static BasedSequence of(BasedSequence basedSequence, @NotNull Iterable<? extends BasedSequence> segments)
Deprecated use
| |
| of | back to summary |
|---|---|
| public static BasedSequence of(BasedSequence... segments)
Deprecated
| |