public final class SegmentedSequence extends BasedSequenceImpl
BasedSequence.EmptyBasedSequenceEMPTY, EMPTY_ARRAY, EMPTY_LIST, EMPTY_SEGMENTS, EOL, NULL, SPACEEOL_CHAR, EOL_CHAR1, EOL_CHAR2, EOL_CHARS, SPLIT_INCLUDE_DELIM_PARTS, SPLIT_INCLUDE_DELIMS, SPLIT_SKIP_EMPTY, SPLIT_TRIM_PARTS, SPLIT_TRIM_SKIP_EMPTY, WHITESPACE_CHARS, WHITESPACE_NBSP_CHARS, WHITESPACE_NO_EOL_CHARS| Modifier and Type | Method and Description |
|---|---|
BasedSequence |
baseSubSequence(int start,
int end)
Get a portion of the original sequence that this sequence is based on
|
char |
charAt(int index) |
boolean |
equals(Object obj) |
Object |
getBase()
Get the underlying object on which this sequence contents are based
|
int[] |
getBaseOffsets() |
BasedSequence |
getBaseSequence()
Get the base sequence for the text
|
int |
getBaseStartOffset() |
int |
getEndOffset()
Get the last end in the base sequence, non-based sequences are skipped
|
int |
getIndexOffset(int index)
Get the offset of index in this sequence mapped to offset into
BasedSequence.getBaseSequence() and BasedSequence.getBase() original text source. |
Range |
getIndexRange(int startOffset,
int endOffset)
Get the range of indices that map into
BasedSequence.getBaseSequence() with startOffset and endOffset |
Range |
getSourceRange()
Get the range of this sequence in original
BasedSequence.getBaseSequence() and BasedSequence.getBase() original text source. |
int |
getStartOffset()
Get the first start in the base sequence, non-based sequences are skipped
|
int |
hashCode() |
int |
length() |
static BasedSequence |
of(BasedSequence... segments) |
static BasedSequence |
of(List<BasedSequence> segments)
removed empty and return BasedSequence.NULL when no segments which is the logical result however,
this will mean empty node text in FencedCodeBlock will now return NULL sequence instead of an empty
sequence from the document.
|
BasedSequence |
subSequence(int start,
int end)
Get a portion of this sequence
|
baseSubSequence, compareTo, containsAllOf, containsSomeOf, emptyArray, equals, equalsIgnoreCase, extendByAny, extendToAny, firstNonNull, getEmptyPrefix, getEmptySuffix, intersect, isContinuationOf, isContinuedBy, normalizeEndWithEOL, normalizeEOL, nullSequence, of, of, of, prefixOf, prefixWithIndent, safeBaseCharAt, safeCharAt, sequenceOf, spliceAtEnd, suffixOf, toMapped, unescape, unescape, unescapeNoEntitiesappend, appendTo, appendTo, appendTo, columnsToNextTabStop, countLeading, countLeading, countLeading, countLeading, countLeading, countLeading, countLeading, countLeadingColumns, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNot, countOf, countOf, countOf, countOf, countOfAny, countOfAny, countOfAny, countOfAnyNot, countOfAnyNot, countOfAnyNot, countOfNot, countOfNot, countOfNot, countOfNot, countTrailing, countTrailing, countTrailing, countTrailing, countTrailing, countTrailing, countTrailing, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNot, endCharAt, endOfDelimitedBy, endOfDelimitedByAny, endOfDelimitedByAnyNot, endOfLine, endOfLineAnyEOL, endSequence, endSequence, endsWith, endsWith, endsWithIgnoreCase, eolLength, eolLength, expandTo, firstChar, firstNonNull, getColumnAtIndex, getLineColumnAtIndex, ifNull, ifNullEmptyAfter, ifNullEmptyBefore, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOfAll, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfNot, indexOfNot, indexOfNot, isBlank, isEmpty, isNotNull, isNull, lastChar, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfNot, lastIndexOfNot, lastIndexOfNot, lineAt, lineAtAnyEOL, matchChars, matchChars, matchChars, matchChars, matchCharsIgnoreCase, matchCharsIgnoreCase, matchCharsReversed, matchCharsReversed, matchCharsReversedIgnoreCase, matches, matches, matchesIgnoreCase, midCharAt, midSequence, midSequence, normalizeEndWithEOL, normalizeEOL, nullIf, nullIf, nullIfBlank, nullIfEmpty, nullIfEndsWith, nullIfEndsWithNot, nullIfNot, nullIfStartsWith, nullIfStartsWithNot, padEnd, padEnd, padStart, padStart, removePrefix, removePrefix, removePrefixIgnoreCase, removeProperPrefix, removeProperPrefix, removeProperPrefixIgnoreCase, removeProperSuffix, removeProperSuffix, removeProperSuffixIgnoreCase, removeSuffix, removeSuffix, removeSuffixIgnoreCase, replace, sequenceOf, sequenceOf, split, split, split, split, split, split, split, split, startOfDelimitedBy, startOfDelimitedByAny, startOfDelimitedByAnyNot, startOfLine, startOfLineAnyEOL, startsWith, startsWith, startsWithIgnoreCase, subSequence, subSequence, toLowerCase, toLowerCase, toString, toUpperCase, toUpperCase, toVisibleWhitespaceString, trim, trim, trimEnd, trimEnd, trimEnd, trimEnd, trimEOL, trimLeadBlankLines, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEOL, trimmedStart, trimmedStart, trimmedStart, trimmedStart, trimStart, trimStart, trimStart, trimStart, trimTailBlankLines, truncateToclone, finalize, getClass, notify, notifyAll, wait, wait, waitextendByAny, extendByOneOfAny, extendToAny, prefixWithIndentappend, appendTo, appendTo, appendTo, countLeading, countLeading, countLeading, countLeading, countLeading, countLeading, countLeading, countLeadingColumns, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNot, countLeadingNot, countOf, countOf, countOf, countOf, countOfAny, countOfAny, countOfAny, countOfAnyNot, countOfAnyNot, countOfAnyNot, countOfNot, countOfNot, countOfNot, countOfNot, countTrailing, countTrailing, countTrailing, countTrailing, countTrailing, countTrailing, countTrailing, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNot, countTrailingNot, endCharAt, endOfDelimitedBy, endOfDelimitedByAny, endOfDelimitedByAnyNot, endOfLine, endOfLineAnyEOL, endSequence, endSequence, endsWith, endsWith, endsWithIgnoreCase, eolLength, eolLength, firstChar, getColumnAtIndex, getLineColumnAtIndex, ifNull, ifNullEmptyAfter, ifNullEmptyBefore, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOfAll, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAny, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfAnyNot, indexOfNot, indexOfNot, indexOfNot, isBlank, isEmpty, isNotNull, isNull, lastChar, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAny, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfAnyNot, lastIndexOfNot, lastIndexOfNot, lastIndexOfNot, lineAt, lineAtAnyEOL, matchChars, matchChars, matchChars, matchChars, matchCharsIgnoreCase, matchCharsIgnoreCase, matchCharsReversed, matchCharsReversed, matchCharsReversedIgnoreCase, matches, matches, matchesIgnoreCase, midCharAt, midSequence, midSequence, normalizeEndWithEOL, normalizeEOL, nullIf, nullIf, nullIfBlank, nullIfEmpty, nullIfEndsWith, nullIfEndsWithNot, nullIfNot, nullIfStartsWith, nullIfStartsWithNot, padEnd, padEnd, padStart, padStart, removePrefix, removePrefix, removePrefixIgnoreCase, removeProperPrefix, removeProperPrefix, removeProperPrefixIgnoreCase, removeProperSuffix, removeProperSuffix, removeProperSuffixIgnoreCase, removeSuffix, removeSuffix, removeSuffixIgnoreCase, replace, sequenceOf, sequenceOf, split, split, split, split, split, split, split, split, startOfDelimitedBy, startOfDelimitedByAny, startOfDelimitedByAnyNot, startOfLine, startOfLineAnyEOL, startsWith, startsWith, startsWithIgnoreCase, subSequence, subSequence, toLowerCase, toLowerCase, toUpperCase, toUpperCase, toVisibleWhitespaceString, trim, trim, trimEnd, trimEnd, trimEnd, trimEnd, trimEOL, trimLeadBlankLines, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEnd, trimmedEOL, trimmedStart, trimmedStart, trimmedStart, trimmedStart, trimStart, trimStart, trimStart, trimStart, trimTailBlankLineschars, codePoints, toStringpublic Object getBase()
BasedSequencepublic BasedSequence getBaseSequence()
BasedSequencepublic int getStartOffset()
public int getEndOffset()
public Range getIndexRange(int startOffset, int endOffset)
BasedSequenceBasedSequence.getBaseSequence() with startOffset and endOffsetgetIndexRange in interface BasedSequencegetIndexRange in class BasedSequenceImplstartOffset - start offset into base sequenceendOffset - end offset into base sequencepublic int[] getBaseOffsets()
public int getBaseStartOffset()
public int getIndexOffset(int index)
BasedSequenceBasedSequence.getBaseSequence() and BasedSequence.getBase() original text source.index - index for which to get the offset in original sourcepublic static BasedSequence of(List<BasedSequence> segments)
If you need the location where content would have been use the FencedCodeBlock.getOpeningMarker().getEndOffset() + 1
segments - list of based sequences to put into a based sequencegetIndexOffset(int)(int index)public int length()
public Range getSourceRange()
BasedSequenceBasedSequence.getBaseSequence() and BasedSequence.getBase() original text source.public char charAt(int index)
public BasedSequence baseSubSequence(int start, int end)
BasedSequencestart - offset from 0 of original sequenceend - offset from 0 of original sequencepublic BasedSequence subSequence(int start, int end)
RichCharSequencestart - offset from start of this sequenceend - offset from start of this sequencepublic boolean equals(Object obj)
equals in class BasedSequenceImplpublic static BasedSequence of(BasedSequence... segments)
Copyright © 2019. All rights reserved.