public abstract class BasedSequenceImpl extends IRichSequenceBase<BasedSequence> implements BasedSequence
BasedSequence.EmptyBasedSequenceBasedOptionsHolder.OptionsEMPTY, EMPTY_ARRAY, EMPTY_LIST, EMPTY_SEGMENTS, EOL, LINE_SEP, NULL, SPACEANY_EOL, ANY_EOL_SET, BACKSLASH_SET, DECIMAL_DIGITS, EMPTY_INDICES, ENC_NUL, EOL_CHAR, EOL_CHAR1, EOL_CHAR2, EOL_CHARS, EOL_SET, HASH_SET, HEXADECIMAL_DIGITS, LS, LSEP, NBSP, NBSP_CHARS, NUL, OCTAL_DIGITS, SPACE_EOL, SPACE_EOL_SET, SPACE_SET, SPACE_TAB, SPACE_TAB_EOL_SET, SPACE_TAB_NBSP_SET, SPACE_TAB_SET, SPC, SPLIT_INCLUDE_DELIM_PARTS, SPLIT_INCLUDE_DELIMS, SPLIT_SKIP_EMPTY, SPLIT_TRIM_PARTS, SPLIT_TRIM_SKIP_EMPTY, TAB_SET, US, US_CHARS, US_SET, visibleSpacesMap, WHITESPACE, WHITESPACE_CHARS, WHITESPACE_NBSP, WHITESPACE_NBSP_CHARS, WHITESPACE_NBSP_SET, WHITESPACE_NO_EOL_CHARS, WHITESPACE_SETF_APPLICATION_OPTIONS, F_COLLECT_FIRST256_STATS, F_COLLECT_SEGMENTED_STATS, F_FULL_SEGMENTED_SEQUENCES, F_LIBRARY_OPTIONS, F_NO_ANCHORS, F_TREE_SEGMENTED_SEQUENCES, O_COLLECT_FIRST256_STATS, O_COLLECT_SEGMENTED_STATS, O_FULL_SEGMENTED_SEQUENCES, O_NO_ANCHORS, O_TREE_SEGMENTED_SEQUENCES, SEGMENTED_STATS| Constructor and Description |
|---|
BasedSequenceImpl(int hash) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSegments(@NotNull IBasedSegmentBuilder<?> builder)
Add segments for this sequence, replacing out of base characters with strings
|
int |
baseColumnAtEnd() |
int |
baseColumnAtIndex(int index) |
int |
baseColumnAtStart() |
int |
baseEndOfLine() |
int |
baseEndOfLine(int index) |
int |
baseEndOfLineAnyEOL() |
int |
baseEndOfLineAnyEOL(int index) |
@NotNull com.vladsch.flexmark.util.misc.Pair<Integer,Integer> |
baseLineColumnAtEnd() |
@NotNull com.vladsch.flexmark.util.misc.Pair<Integer,Integer> |
baseLineColumnAtIndex(int index) |
@NotNull com.vladsch.flexmark.util.misc.Pair<Integer,Integer> |
baseLineColumnAtStart() |
@NotNull Range |
baseLineRangeAtEnd() |
@NotNull Range |
baseLineRangeAtIndex(int index) |
@NotNull Range |
baseLineRangeAtStart() |
int |
baseStartOfLine() |
int |
baseStartOfLine(int index) |
int |
baseStartOfLineAnyEOL() |
int |
baseStartOfLineAnyEOL(int index) |
@NotNull BasedSequence |
baseSubSequence(int startIndex)
Get a portion of the original sequence that this sequence is based on
|
@NotNull BasedSequence |
baseSubSequence(int startIndex,
int endIndex)
Get a portion of this sequence's base sequence
|
boolean |
containsAllOf(@NotNull BasedSequence other)
start/end offset based containment, not textual
|
boolean |
containsSomeOf(@NotNull BasedSequence other)
start/end offset based containment, not textual
|
@NotNull BasedSequence[] |
emptyArray() |
@NotNull BasedSequence |
extendByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet) |
@NotNull BasedSequence |
extendByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet,
int maxCount)
Extend this based sequence to include characters from underlying based sequence
|
@NotNull BasedSequence |
extendByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet) |
@NotNull BasedSequence |
extendByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet,
int maxCount)
Extend this based sequence to include characters from underlying based sequence not in character set
|
@NotNull BasedSequence |
extendByOneOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet) |
@NotNull BasedSequence |
extendByOneOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet) |
@NotNull BasedSequence |
extendToEndOfLine() |
@NotNull BasedSequence |
extendToEndOfLine(boolean includeEol) |
@NotNull BasedSequence |
extendToEndOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars) |
@NotNull BasedSequence |
extendToEndOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
boolean includeEol)
Extend in contained based sequence
|
@NotNull BasedSequence |
extendToStartOfLine() |
@NotNull BasedSequence |
extendToStartOfLine(boolean includeEol) |
@NotNull BasedSequence |
extendToStartOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars) |
@NotNull BasedSequence |
extendToStartOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars,
boolean includeEol)
Extend in contained based sequence
|
static BasedSequence |
firstNonNull(BasedSequence... sequences) |
@NotNull SequenceBuilder |
getBuilder()
Get a sequence builder for this sequence type
|
@NotNull BasedSequence |
getEmptyPrefix()
Get empty prefix to this sequence
|
@NotNull BasedSequence |
getEmptySuffix()
Get empty suffix to this sequence
|
@NotNull SegmentTree |
getSegmentTree()
Get the segment tree for this sequence or null if sequence is contiguous from startOffset to endOffset
|
@NotNull BasedSequence |
intersect(@NotNull BasedSequence other)
start/end offset based intersection, not textual
|
boolean |
isBaseCharAt(int index,
@NotNull com.vladsch.flexmark.util.misc.CharPredicate predicate)
Safe, if index out of range but based sequence has characters will return those, else returns '\0'
|
boolean |
isContinuationOf(@NotNull BasedSequence other)
Test if this sequence is a continuation of the given sequence in original source text
|
boolean |
isContinuedBy(@NotNull BasedSequence other)
Test if the given sequence is a continuation of this sequence in original source text
|
@NotNull BasedSequence |
normalizeEndWithEOL(@NotNull ReplacedTextMapper textMapper)
replace any \r\n and \r by \n, append terminating EOL if one is not present
|
@NotNull BasedSequence |
normalizeEOL(@NotNull ReplacedTextMapper textMapper)
replace any \r\n and \r by \n
|
@NotNull BasedSequence |
nullSequence() |
static BasedSequence |
of(@Nullable CharSequence charSequence)
Deprecated.
|
static BasedSequence |
of(@Nullable CharSequence charSequence,
int startIndex)
Deprecated.
|
static BasedSequence |
of(@Nullable CharSequence charSequence,
int startIndex,
int endIndex)
Deprecated.
|
@NotNull BasedSequence |
prefixOf(@NotNull BasedSequence other)
Get the prefix part of this from other, start/end offset based containment, not textual
|
@NotNull BasedSequence |
prefixWith(@Nullable CharSequence prefix)
Prefix this sequence with a char sequence
|
@NotNull BasedSequence |
prefixWithIndent() |
@NotNull BasedSequence |
prefixWithIndent(int maxColumns)
Extend this based sequence to include characters from underlying based sequence
taking tab expansion to 4th spaces into account
|
char |
safeBaseCharAt(int index)
Safe, if index out of range but based sequence has characters will return those, else returns '\0'
|
char |
safeCharAt(int index)
return char at index or '\0' if index <0 or >=length()
|
@NotNull BasedSequence |
sequenceOf(@Nullable CharSequence charSequence,
int startIndex,
int endIndex)
Factory function
|
@NotNull BasedSequence |
spliceAtEnd(@NotNull BasedSequence other)
Splice the given sequence to the end of this one and return a BasedSequence of the result.
|
@NotNull BasedSequence |
suffixOf(@NotNull BasedSequence other)
Get the suffix part of this from other, start/end offset based containment, not textual
|
@NotNull BasedSequence |
toMapped(CharMapper mapper) |
@Nullable String |
toStringOrNull()
Return string or null if BaseSequence.NULL
|
@NotNull String |
unescape()
Get the unescaped string of this sequence content
|
@NotNull BasedSequence |
unescape(@NotNull ReplacedTextMapper textMapper)
Get the unescaped string of this sequence content
|
@NotNull String |
unescapeNoEntities()
Get the unescaped string of this sequence content without unescaping entities
|
append, append, appendEOL, appendRangesTo, appendRangesTo, appendRangesTo, appendRangesTo, appendSpace, appendSpaces, appendTo, appendTo, appendTo, appendTo, appendTo, appendTo, blankLinesRemovedRanges, blankLinesRemovedRanges, blankLinesRemovedRanges, blankLinesRemovedRanges, columnAtIndex, compareTo, countLeading, countLeading, countLeading, countLeadingColumns, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNotSpace, countLeadingNotSpace, countLeadingNotSpace, countLeadingNotSpaceTab, countLeadingNotSpaceTab, countLeadingNotSpaceTab, countLeadingNotWhitespace, countLeadingNotWhitespace, countLeadingNotWhitespace, countLeadingSpace, countLeadingSpace, countLeadingSpace, countLeadingSpaceTab, countLeadingSpaceTab, countLeadingSpaceTab, countLeadingWhitespace, countLeadingWhitespace, countLeadingWhitespace, countOfAny, countOfAny, countOfAny, countOfAnyNot, countOfAnyNot, countOfAnyNot, countOfNotSpaceTab, countOfNotWhitespace, countOfSpaceTab, countOfWhitespace, countTrailing, countTrailing, countTrailing, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNotSpace, countTrailingNotSpace, countTrailingNotSpace, countTrailingNotSpaceTab, countTrailingNotSpaceTab, countTrailingNotSpaceTab, countTrailingNotWhitespace, countTrailingNotWhitespace, countTrailingNotWhitespace, countTrailingSpace, countTrailingSpace, countTrailingSpace, countTrailingSpaceTab, countTrailingSpaceTab, countTrailingSpaceTab, countTrailingWhitespace, countTrailingWhitespace, countTrailingWhitespace, delete, endCharAt, endOfDelimitedBy, endOfDelimitedByAny, endOfDelimitedByAnyNot, endOfLine, endOfLineAnyEOL, endSequence, endSequence, endsWith, endsWith, endsWith, endsWithAnyEOL, endsWithEOL, endsWithIgnoreCase, endsWithSpace, endsWithSpaceTab, endsWithWhitespace, eolEndLength, eolEndLength, eolEndRange, eolStartLength, eolStartRange, equals, equals, equalsIgnoreCase, extractRanges, extractRanges, firstChar, hashCode, ifNull, ifNullEmptyAfter, ifNullEmptyBefore, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOfAll, indexOfAny, indexOfAny, indexOfAny, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfNot, indexOfNot, indexOfNot, insert, isBlank, isCharAt, isEmpty, isIn, isIn, isNotBlank, isNotEmpty, isNotNull, isNull, lastChar, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfNot, lastIndexOfNot, lastIndexOfNot, leadingBlankLinesRange, leadingBlankLinesRange, leadingBlankLinesRange, leadingBlankLinesRange, lineAt, lineAtAnyEOL, lineColumnAtIndex, lineRangeAt, lineRangeAtAnyEOL, matchChars, matchChars, matchChars, matchChars, matchCharsIgnoreCase, matchCharsIgnoreCase, matchCharsReversed, matchCharsReversed, matchCharsReversedIgnoreCase, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCountIgnoreCase, matchedCharCountIgnoreCase, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversedIgnoreCase, matchedCharCountReversedIgnoreCase, matches, matches, matchesIgnoreCase, midCharAt, midSequence, midSequence, normalizeEndWithEOL, normalizeEOL, nullIf, nullIf, nullIf, nullIf, nullIfBlank, nullIfEmpty, nullIfEndsWith, nullIfEndsWith, nullIfEndsWithIgnoreCase, nullIfNot, nullIfNot, nullIfNot, nullIfNotEndsWith, nullIfNotEndsWith, nullIfNotEndsWithIgnoreCase, nullIfNotStartsWith, nullIfNotStartsWith, nullIfNotStartsWithIgnoreCase, nullIfStartsWith, nullIfStartsWith, nullIfStartsWithIgnoreCase, padding, padding, padEnd, padEnd, padStart, padStart, prefixOnceWith, prefixOnceWithEOL, prefixOnceWithSpace, prefixWithEOL, prefixWithSpace, prefixWithSpaces, removePrefix, removePrefix, removePrefixIgnoreCase, removeProperPrefix, removeProperPrefix, removeProperPrefixIgnoreCase, removeProperSuffix, removeProperSuffix, removeProperSuffixIgnoreCase, removeSuffix, removeSuffix, removeSuffixIgnoreCase, replace, replace, safeSubSequence, safeSubSequence, sequenceOf, sequenceOf, split, split, split, split, split, splitEOL, splitEOL, splitList, splitList, splitList, splitList, splitList, splitListEOL, splitListEOL, splitListEOL, startOfDelimitedBy, startOfDelimitedByAny, startOfDelimitedByAnyNot, startOfLine, startOfLineAnyEOL, startsWith, startsWith, startsWith, startsWithAnyEOL, startsWithEOL, startsWithIgnoreCase, startsWithSpace, startsWithSpaceTab, startsWithWhitespace, subSequence, subSequence, subSequenceAfter, subSequenceBefore, subSequenceBeforeAfter, suffixOnceWith, suffixOnceWithEOL, suffixOnceWithSpace, suffixWith, suffixWithEOL, suffixWithSpace, suffixWithSpaces, toLowerCase, toNbSp, toSpc, toString, toUpperCase, toVisibleWhitespaceString, trailingBlankLinesRange, trailingBlankLinesRange, trailingBlankLinesRange, trailingBlankLinesRange, trim, trim, trim, trim, trimEnd, trimEnd, trimEnd, trimEnd, trimEndRange, trimEndRange, trimEndRange, trimEndRange, trimEOL, trimLeadBlankLines, trimmed, trimmed, trimmed, trimmed, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEOL, trimmedStart, trimmedStart, trimmedStart, trimmedStart, trimRange, trimRange, trimRange, trimRange, trimStart, trimStart, trimStart, trimStart, trimStartRange, trimStartRange, trimStartRange, trimStartRange, trimTailBlankLines, trimToEndOfLine, trimToEndOfLine, trimToEndOfLine, trimToEndOfLine, trimToEndOfLine, trimToStartOfLine, trimToStartOfLine, trimToStartOfLine, trimToStartOfLine, trimToStartOfLine, validateIndex, validateIndexInclusiveEnd, validateStartEndclone, finalize, getClass, notify, notifyAll, wait, wait, waitextendToAny, extendToAny, getBase, getBaseSequence, getEndOffset, getIndexOffset, getSourceRange, getStartOffset, ofSpaces, repeatOf, repeatOf, repeatOf, subSequenceappend, append, appendEOL, appendRangesTo, appendRangesTo, appendRangesTo, appendRangesTo, appendSpace, appendSpaces, appendTo, appendTo, appendTo, appendTo, appendTo, appendTo, blankLinesRemovedRanges, blankLinesRemovedRanges, blankLinesRemovedRanges, blankLinesRemovedRanges, columnAtIndex, countLeading, countLeading, countLeading, countLeading, countLeading, countLeadingColumns, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNotSpace, countLeadingNotSpace, countLeadingNotSpace, countLeadingNotSpaceTab, countLeadingNotSpaceTab, countLeadingNotSpaceTab, countLeadingNotWhitespace, countLeadingNotWhitespace, countLeadingNotWhitespace, countLeadingSpace, countLeadingSpace, countLeadingSpace, countLeadingSpaceTab, countLeadingSpaceTab, countLeadingSpaceTab, countLeadingWhitespace, countLeadingWhitespace, countLeadingWhitespace, countOf, countOfAny, countOfAny, countOfAny, countOfAnyNot, countOfAnyNot, countOfAnyNot, countOfNotSpaceTab, countOfNotWhitespace, countOfSpaceTab, countOfWhitespace, countTrailing, countTrailing, countTrailing, countTrailing, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNotSpace, countTrailingNotSpace, countTrailingNotSpace, countTrailingNotSpaceTab, countTrailingNotSpaceTab, countTrailingNotSpaceTab, countTrailingNotWhitespace, countTrailingNotWhitespace, countTrailingNotWhitespace, countTrailingSpace, countTrailingSpace, countTrailingSpace, countTrailingSpaceTab, countTrailingSpaceTab, countTrailingSpaceTab, countTrailingWhitespace, countTrailingWhitespace, countTrailingWhitespace, delete, endCharAt, endOfDelimitedBy, endOfDelimitedByAny, endOfDelimitedByAnyNot, endOfLine, endOfLineAnyEOL, endSequence, endSequence, endsWith, endsWith, endsWith, endsWithAnyEOL, endsWithEOL, endsWithIgnoreCase, endsWithSpace, endsWithSpaceTab, endsWithWhitespace, eolEndLength, eolEndLength, eolEndRange, eolLength, eolStartLength, eolStartLength, eolStartRange, equals, equals, equalsIgnoreCase, extractRanges, extractRanges, firstChar, getColumnAtIndex, getLineColumnAtIndex, hashCode, ifNull, ifNullEmptyAfter, ifNullEmptyBefore, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOfAll, indexOfAny, indexOfAny, indexOfAny, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfNot, indexOfNot, indexOfNot, insert, insert, isBlank, isCharAt, isEmpty, isIn, isIn, isNotBlank, isNotEmpty, isNotNull, isNull, lastChar, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfNot, lastIndexOfNot, lastIndexOfNot, leadingBlankLinesRange, leadingBlankLinesRange, leadingBlankLinesRange, leadingBlankLinesRange, lineAt, lineAtAnyEOL, lineColumnAtIndex, lineRangeAt, lineRangeAtAnyEOL, matchChars, matchChars, matchChars, matchChars, matchCharsIgnoreCase, matchCharsIgnoreCase, matchCharsReversed, matchCharsReversed, matchCharsReversedIgnoreCase, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCountIgnoreCase, matchedCharCountIgnoreCase, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversedIgnoreCase, matchedCharCountReversedIgnoreCase, matches, matches, matchesIgnoreCase, midCharAt, midSequence, midSequence, normalizeEndWithEOL, normalizeEOL, nullIf, nullIf, nullIf, nullIf, nullIfBlank, nullIfEmpty, nullIfEndsWith, nullIfEndsWith, nullIfEndsWithIgnoreCase, nullIfEndsWithNot, nullIfNot, nullIfNot, nullIfNot, nullIfNotEndsWith, nullIfNotEndsWith, nullIfNotEndsWithIgnoreCase, nullIfNotStartsWith, nullIfNotStartsWith, nullIfNotStartsWithIgnoreCase, nullIfStartsWith, nullIfStartsWith, nullIfStartsWithIgnoreCase, nullIfStartsWithNot, padding, padding, padEnd, padEnd, padStart, padStart, prefixOnceWith, prefixOnceWithEOL, prefixOnceWithSpace, prefixWithEOL, prefixWithSpace, prefixWithSpaces, removePrefix, removePrefix, removePrefixIgnoreCase, removeProperPrefix, removeProperPrefix, removeProperPrefixIgnoreCase, removeProperSuffix, removeProperSuffix, removeProperSuffixIgnoreCase, removeSuffix, removeSuffix, removeSuffixIgnoreCase, replace, replace, safeSubSequence, safeSubSequence, sequenceOf, sequenceOf, split, split, split, split, split, split, split, split, splitEOL, splitEOL, splitList, splitList, splitList, splitList, splitList, splitListEOL, splitListEOL, splitListEOL, startOfDelimitedBy, startOfDelimitedByAny, startOfDelimitedByAnyNot, startOfLine, startOfLineAnyEOL, startsWith, startsWith, startsWith, startsWithAnyEOL, startsWithEOL, startsWithIgnoreCase, startsWithSpace, startsWithSpaceTab, startsWithWhitespace, subSequence, subSequence, subSequenceAfter, subSequenceBefore, suffixOnceWith, suffixOnceWithEOL, suffixOnceWithSpace, suffixWith, suffixWithEOL, suffixWithSpace, suffixWithSpaces, toLowerCase, toNbSp, toSpc, toUpperCase, toVisibleWhitespaceString, trailingBlankLinesRange, trailingBlankLinesRange, trailingBlankLinesRange, trailingBlankLinesRange, trim, trim, trim, trim, trimEnd, trimEnd, trimEnd, trimEnd, trimEndRange, trimEndRange, trimEndRange, trimEndRange, trimEOL, trimLeadBlankLines, trimmed, trimmed, trimmed, trimmed, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEOL, trimmedStart, trimmedStart, trimmedStart, trimmedStart, trimRange, trimRange, trimRange, trimRange, trimStart, trimStart, trimStart, trimStart, trimStartRange, trimStartRange, trimStartRange, trimStartRange, trimTailBlankLines, trimToEndOfLine, trimToEndOfLine, trimToEndOfLine, trimToEndOfLine, trimToEndOfLine, trimToStartOfLine, trimToStartOfLine, trimToStartOfLine, trimToStartOfLine, trimToStartOfLinecharAt, chars, codePoints, length, toStringcompareToblankLinesRemovedRanges, blankLinesRemovedRanges, blankLinesRemovedRanges, blankLinesRemovedRanges, columnAtIndex, columnsToNextTabStop, compare, compare, compare, compareReversed, containedBy, containedBy, containsAny, containsAny, containsAnyNot, containsAnyNot, containsAnyNot, countLeading, countLeading, countLeading, countLeadingColumns, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNotSpace, countLeadingNotSpace, countLeadingNotSpace, countLeadingNotSpaceTab, countLeadingNotSpaceTab, countLeadingNotSpaceTab, countLeadingNotWhitespace, countLeadingNotWhitespace, countLeadingNotWhitespace, countLeadingSpace, countLeadingSpace, countLeadingSpace, countLeadingSpaceTab, countLeadingSpaceTab, countLeadingSpaceTab, countLeadingWhitespace, countLeadingWhitespace, countLeadingWhitespace, countOfAny, countOfAny, countOfAny, countOfAnyNot, countOfAnyNot, countOfAnyNot, countOfNotSpaceTab, countOfNotWhitespace, countOfSpaceTab, countOfWhitespace, countTrailing, countTrailing, countTrailing, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNotSpace, countTrailingNotSpace, countTrailingNotSpace, countTrailingNotSpaceTab, countTrailingNotSpaceTab, countTrailingNotSpaceTab, countTrailingNotWhitespace, countTrailingNotWhitespace, countTrailingNotWhitespace, countTrailingSpace, countTrailingSpace, countTrailingSpace, countTrailingSpaceTab, countTrailingSpaceTab, countTrailingSpaceTab, countTrailingWhitespace, countTrailingWhitespace, countTrailingWhitespace, endOfDelimitedBy, endOfDelimitedByAny, endOfDelimitedByAnyNot, endOfLine, endOfLineAnyEOL, endsWith, endsWith, endsWith, endsWithAnyEOL, endsWithEOL, endsWithSpace, endsWithSpaceTab, endsWithWhitespace, eolEndLength, eolEndLength, eolEndRange, eolStartLength, eolStartRange, equals, expandTo, firstChar, getVisibleSpacesMap, hashCode, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOfAll, indexOfAny, indexOfAny, indexOfAny, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfNot, indexOfNot, indexOfNot, isBlank, isEmpty, isNotBlank, isNotEmpty, isVisibleWhitespace, lastChar, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfNot, lastIndexOfNot, lastIndexOfNot, leadingBlankLinesRange, leadingBlankLinesRange, leadingBlankLinesRange, leadingBlankLinesRange, lineColumnAtIndex, lineRangeAt, lineRangeAtAnyEOL, matchChars, matchChars, matchChars, matchChars, matchCharsIgnoreCase, matchCharsIgnoreCase, matchCharsReversed, matchCharsReversed, matchCharsReversedIgnoreCase, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCount, matchedCharCountIgnoreCase, matchedCharCountIgnoreCase, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversed, matchedCharCountReversedIgnoreCase, matchedCharCountReversedIgnoreCase, matches, matches, matchesIgnoreCase, padEnd, padEnd, padStart, padStart, parseIntOrDefault, parseIntOrDefault, parseIntOrNull, parseIntOrNull, parseLongOrNull, parseLongOrNull, parseNumberOrNull, parseNumberPrefixOrNull, parseUnsignedIntOrDefault, parseUnsignedIntOrDefault, parseUnsignedIntOrNull, parseUnsignedIntOrNull, safeCharAt, split, split, split, split, split, splitEOL, splitEOL, splitList, splitList, splitList, splitList, splitList, splitListEOL, splitListEOL, splitListEOL, startOfDelimitedBy, startOfDelimitedByAny, startOfDelimitedByAnyNot, startOfLine, startOfLineAnyEOL, startsWith, startsWith, startsWith, startsWithAnyEOL, startsWithEOL, startsWithSpace, startsWithSpaceTab, startsWithWhitespace, subSequence, subSequence, subSequenceAfter, subSequenceBefore, subSequenceBeforeAfter, toStringArray, toVisibleWhitespaceString, trailingBlankLinesRange, trailingBlankLinesRange, trailingBlankLinesRange, trailingBlankLinesRange, trim, trim, trim, trim, trimEnd, trimEnd, trimEnd, trimEnd, trimEndRange, trimEndRange, trimEndRange, trimEndRange, trimEOL, trimLeadBlankLines, trimmed, trimmed, trimmed, trimmed, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEOL, trimmedStart, trimmedStart, trimmedStart, trimmedStart, trimRange, trimRange, trimRange, trimRange, trimStart, trimStart, trimStart, trimStart, trimStartRange, trimStartRange, trimStartRange, trimStartRange, trimTailBlankLines, truncateTo, validateIndex, validateIndexInclusiveEnd, validateStartEndallOptions, anyOptions, getOption, getOptionFlags, getOptions, optionsToStringpublic static BasedSequence firstNonNull(BasedSequence... sequences)
@NotNull public @NotNull BasedSequence[] emptyArray()
emptyArray in interface IRichSequence<BasedSequence>@NotNull public @NotNull BasedSequence nullSequence()
nullSequence in interface IRichSequence<BasedSequence>@NotNull public @NotNull BasedSequence sequenceOf(@Nullable @Nullable CharSequence charSequence, int startIndex, int endIndex)
IRichSequencesequenceOf in interface IRichSequence<BasedSequence>charSequence - char sequence from which to construct a rich char sequencestartIndex - start index of the sequence to useendIndex - end index of the sequence to use@NotNull public @NotNull SequenceBuilder getBuilder()
IRichSequencegetBuilder in interface BasedSequencegetBuilder in interface IRichSequence<BasedSequence>public void addSegments(@NotNull
@NotNull IBasedSegmentBuilder<?> builder)
BasedSequenceaddSegments in interface BasedSequencebuilder - builder@NotNull public @NotNull SegmentTree getSegmentTree()
getSegmentTree in interface BasedSequence@NotNull public @NotNull BasedSequence toMapped(CharMapper mapper)
toMapped in interface IRichSequence<BasedSequence>@NotNull public final @NotNull BasedSequence baseSubSequence(int startIndex)
BasedSequencebaseSubSequence in interface BasedSequencestartIndex - offset from 0 of original sequence@NotNull public @NotNull BasedSequence baseSubSequence(int startIndex, int endIndex)
BasedSequenceNOTE: 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 CharSubSequence and SubSequence others use inherited implementation of BasedSequenceImpl
baseSubSequence in interface BasedSequencestartIndex - offset from 0 of original sequenceendIndex - offset from 0 of original sequencepublic char safeCharAt(int index)
IRichSequencesafeCharAt in interface IRichSequence<BasedSequence>safeCharAt in class IRichSequenceBase<BasedSequence>index - indexpublic char safeBaseCharAt(int index)
BasedSequenceAllows peeking into preceding/following characters to the ones contained in this sequence
safeBaseCharAt in interface BasedSequenceindex - index in stringpublic boolean isBaseCharAt(int index,
@NotNull
@NotNull com.vladsch.flexmark.util.misc.CharPredicate predicate)
BasedSequenceAllows peeking into preceding/following characters to the ones contained in this sequence
isBaseCharAt in interface BasedSequenceindex - index in stringpredicate - character set predicate@NotNull public @NotNull BasedSequence getEmptyPrefix()
BasedSequencegetEmptyPrefix in interface BasedSequence@NotNull public @NotNull BasedSequence getEmptySuffix()
BasedSequencegetEmptySuffix in interface BasedSequence@Nullable public @Nullable String toStringOrNull()
IRichSequencetoStringOrNull in interface IRichSequence<BasedSequence>toStringOrNull in class IRichSequenceBase<BasedSequence>@NotNull public @NotNull String unescape()
BasedSequenceunescape in interface BasedSequence@NotNull public @NotNull String unescapeNoEntities()
BasedSequenceunescapeNoEntities in interface BasedSequence@NotNull public @NotNull BasedSequence unescape(@NotNull @NotNull ReplacedTextMapper textMapper)
BasedSequenceunescape in interface BasedSequencetextMapper - replaced text mapper which will be uses to map unescaped index to original source index@NotNull public @NotNull BasedSequence normalizeEOL(@NotNull @NotNull ReplacedTextMapper textMapper)
BasedSequencenormalizeEOL in interface BasedSequencetextMapper - replaced text mapper which will be uses to map unescaped index to original source index@NotNull public @NotNull BasedSequence normalizeEndWithEOL(@NotNull @NotNull ReplacedTextMapper textMapper)
BasedSequencenormalizeEndWithEOL in interface BasedSequencetextMapper - replaced text mapper which will be uses to map unescaped index to original source indexpublic boolean isContinuedBy(@NotNull
@NotNull BasedSequence other)
BasedSequenceisContinuedBy in interface BasedSequenceother - sequence to testpublic boolean isContinuationOf(@NotNull
@NotNull BasedSequence other)
BasedSequenceisContinuationOf in interface BasedSequenceother - sequence to test@NotNull public @NotNull BasedSequence spliceAtEnd(@NotNull @NotNull BasedSequence other)
BasedSequencespliceAtEnd in interface BasedSequenceother - sequence to append to end of this oneassertion will fail if the other sequence is not a continuation of this one
public boolean containsAllOf(@NotNull
@NotNull BasedSequence other)
BasedSequencecontainsAllOf in interface BasedSequenceother - based sequence from the same basepublic boolean containsSomeOf(@NotNull
@NotNull BasedSequence other)
BasedSequencecontainsSomeOf in interface BasedSequenceother - based sequence from the same base@NotNull public @NotNull BasedSequence intersect(@NotNull @NotNull BasedSequence other)
BasedSequenceintersect in interface BasedSequenceother - based sequence from the same parent@NotNull public @NotNull BasedSequence extendByAny(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)
extendByAny in interface BasedSequence@NotNull public @NotNull BasedSequence extendByOneOfAny(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)
extendByOneOfAny in interface BasedSequence@NotNull public @NotNull BasedSequence extendByAny(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet, int maxCount)
BasedSequenceextendByAny in interface BasedSequencecharSet - set of characters to includemaxCount - maximum extra characters to include@NotNull public @NotNull BasedSequence extendByAnyNot(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)
extendByAnyNot in interface BasedSequence@NotNull public @NotNull BasedSequence extendByOneOfAnyNot(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)
extendByOneOfAnyNot in interface BasedSequence@NotNull public @NotNull BasedSequence extendByAnyNot(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet, int maxCount)
BasedSequenceextendByAnyNot in interface BasedSequencecharSet - set of characters to includemaxCount - maximum extra characters to include@NotNull public final @NotNull BasedSequence extendToEndOfLine(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars)
extendToEndOfLine in interface BasedSequence@NotNull public final @NotNull BasedSequence extendToEndOfLine(boolean includeEol)
extendToEndOfLine in interface BasedSequence@NotNull public final @NotNull BasedSequence extendToEndOfLine()
extendToEndOfLine in interface BasedSequence@NotNull public final @NotNull BasedSequence extendToStartOfLine(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars)
extendToStartOfLine in interface BasedSequence@NotNull public final @NotNull BasedSequence extendToStartOfLine(boolean includeEol)
extendToStartOfLine in interface BasedSequence@NotNull public final @NotNull BasedSequence extendToStartOfLine()
extendToStartOfLine in interface BasedSequence@NotNull public final @NotNull BasedSequence extendToEndOfLine(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, boolean includeEol)
BasedSequenceextendToEndOfLine in interface BasedSequenceeolChars - characters to consider as EOL, note IRichSequence.eolStartLength(int) IRichSequence.eolEndLength(int) should report length of EOL found if length > 1includeEol - if to include the eol in the string@NotNull public @NotNull BasedSequence extendToStartOfLine(@NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, boolean includeEol)
BasedSequenceextendToStartOfLine in interface BasedSequenceeolChars - characters to consider as EOL, note IRichSequence.eolStartLength(int) IRichSequence.eolEndLength(int) should report length of EOL found if length > 1includeEol - if to include the eol in the string@NotNull public @NotNull BasedSequence prefixWith(@Nullable @Nullable CharSequence prefix)
IRichSequenceprefixWith in interface IRichSequence<BasedSequence>prefixWith in class IRichSequenceBase<BasedSequence>prefix - char sequence@NotNull public final @NotNull BasedSequence prefixWithIndent()
prefixWithIndent in interface BasedSequence@NotNull public @NotNull BasedSequence prefixWithIndent(int maxColumns)
BasedSequenceprefixWithIndent in interface BasedSequencemaxColumns - maximum columns to include, default Integer.MAX_VALUE@NotNull public @NotNull BasedSequence prefixOf(@NotNull @NotNull BasedSequence other)
BasedSequenceprefixOf in interface BasedSequenceother - based sequence from the same base@NotNull public @NotNull BasedSequence suffixOf(@NotNull @NotNull BasedSequence other)
BasedSequencesuffixOf in interface BasedSequenceother - based sequence from the same base@NotNull public @NotNull Range baseLineRangeAtIndex(int index)
baseLineRangeAtIndex in interface BasedSequence@NotNull public @NotNull com.vladsch.flexmark.util.misc.Pair<Integer,Integer> baseLineColumnAtIndex(int index)
baseLineColumnAtIndex in interface BasedSequencepublic int baseEndOfLine(int index)
baseEndOfLine in interface BasedSequencepublic int baseEndOfLineAnyEOL(int index)
baseEndOfLineAnyEOL in interface BasedSequencepublic int baseStartOfLine(int index)
baseStartOfLine in interface BasedSequencepublic int baseStartOfLineAnyEOL(int index)
baseStartOfLineAnyEOL in interface BasedSequencepublic int baseColumnAtIndex(int index)
baseColumnAtIndex in interface BasedSequencepublic int baseEndOfLine()
baseEndOfLine in interface BasedSequencepublic int baseEndOfLineAnyEOL()
baseEndOfLineAnyEOL in interface BasedSequencepublic int baseColumnAtEnd()
baseColumnAtEnd in interface BasedSequence@NotNull public @NotNull Range baseLineRangeAtEnd()
baseLineRangeAtEnd in interface BasedSequence@NotNull public @NotNull com.vladsch.flexmark.util.misc.Pair<Integer,Integer> baseLineColumnAtEnd()
baseLineColumnAtEnd in interface BasedSequencepublic int baseStartOfLine()
baseStartOfLine in interface BasedSequencepublic int baseStartOfLineAnyEOL()
baseStartOfLineAnyEOL in interface BasedSequencepublic int baseColumnAtStart()
baseColumnAtStart in interface BasedSequence@NotNull public @NotNull Range baseLineRangeAtStart()
baseLineRangeAtStart in interface BasedSequence@NotNull public @NotNull com.vladsch.flexmark.util.misc.Pair<Integer,Integer> baseLineColumnAtStart()
baseLineColumnAtStart in interface BasedSequence@Deprecated public static BasedSequence of(@Nullable @Nullable CharSequence charSequence)
of in interface BasedSequence@Deprecated public static BasedSequence of(@Nullable @Nullable CharSequence charSequence, int startIndex)
of in interface BasedSequence@Deprecated public static BasedSequence of(@Nullable @Nullable CharSequence charSequence, int startIndex, int endIndex)
of in interface BasedSequenceCopyright © 2020. All rights reserved.