Interface BasedSequence
- All Superinterfaces:
BasedOptionsHolder, CharSequence, Comparable<CharSequence>, IRichSequence<BasedSequence>, SequenceUtils
- All Known Subinterfaces:
ReplacedBasedSequence
- All Known Implementing Classes:
BasedSequence.EmptyBasedSequence, BasedSequenceImpl, CharSubSequence, MappedBasedSequence, PrefixedSubSequence, SegmentedSequence, SegmentedSequenceFull, SegmentedSequenceTree, SubSequence
NOTE: '\0' changed to '�' use NullEncoder.decodeNull mapper to get original null chars.
Since equals is used for comparison of sequences and strings by base sequence manager, a base sequence with NUL may not compare equal to an equivalent unwrapped sequence because NUL chars are not converted. For Strings this is handled by using String.equals() for comparison. For other CharacterSequence types the match will fail if original has NUL in it.
a subSequence() returns a sub-sequence from the original base sequence with corresponding offsets
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface BasedOptionsHolder
BasedOptionsHolder.Options -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BasedSequencestatic final BasedSequence[]static final List<BasedSequence> static final BasedSequence[]static final BasedSequencestatic final BasedSequencestatic final BasedSequencestatic final BasedSequenceFields inherited from interface BasedOptionsHolder
F_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_STATSFields inherited from interface SequenceUtils
ANY_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_SET -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSegments(@NotNull IBasedSegmentBuilder<?> builder) Add segments for this sequence, replacing out of base characters with stringsintintbaseColumnAtIndex(int index) intintintbaseEndOfLine(int index) intintbaseEndOfLineAnyEOL(int index) baseLineColumnAtIndex(int index) @NotNull Range@NotNull RangebaseLineRangeAtIndex(int index) @NotNull RangeintintbaseStartOfLine(int index) intintbaseStartOfLineAnyEOL(int index) @NotNull BasedSequencebaseSubSequence(int startIndex) Get a portion of the original sequence that this sequence is based on@NotNull BasedSequencebaseSubSequence(int startIndex, int endIndex) Get a portion of this sequence's base sequencebooleancontainsAllOf(@NotNull BasedSequence other) start/end offset based containment, not textualbooleancontainsOnlyIn(@NotNull CharPredicate charSet) Test for line contains only characters from the setbooleancontainsOnlyNotIn(@NotNull CharPredicate charSet) Test for line containing only characters not in the setbooleancontainsSomeIn(@NotNull CharPredicate charSet) Test for line containing some of the characters in the setbooleancontainsSomeNotIn(@NotNull CharPredicate charSet) Test for line containing some characters not in the setbooleancontainsSomeOf(@NotNull BasedSequence other) start/end offset based containment, not textual@NotNull BasedSequenceextendByAny(@NotNull CharPredicate charSet) @NotNull BasedSequenceextendByAny(@NotNull CharPredicate charSet, int maxCount) Extend this based sequence to include characters from underlying based sequence@NotNull BasedSequenceextendByAnyNot(@NotNull CharPredicate charSet) @NotNull BasedSequenceextendByAnyNot(@NotNull CharPredicate charSet, int maxCount) Extend this based sequence to include characters from underlying based sequence not in character set@NotNull BasedSequenceextendByOneOfAny(@NotNull CharPredicate charSet) @NotNull BasedSequenceextendByOneOfAnyNot(@NotNull CharPredicate charSet) default @NotNull BasedSequenceextendToAny(@NotNull CharPredicate charSet) Deprecated.default @NotNull BasedSequenceextendToAny(@NotNull CharPredicate charSet, int maxCount) Deprecated.@NotNull BasedSequence@NotNull BasedSequenceextendToEndOfLine(boolean includeEol) @NotNull BasedSequenceextendToEndOfLine(@NotNull CharPredicate eolChars) @NotNull BasedSequenceextendToEndOfLine(@NotNull CharPredicate eolChars, boolean includeEol) Extend in contained based sequence@NotNull BasedSequence@NotNull BasedSequenceextendToStartOfLine(boolean includeEol) @NotNull BasedSequenceextendToStartOfLine(@NotNull CharPredicate eolChars) @NotNull BasedSequenceextendToStartOfLine(@NotNull CharPredicate eolChars, boolean includeEol) Extend in contained based sequence@NotNull ObjectgetBase()Get the underlying object on which this sequence contents are based@NotNull BasedSequenceGet the base sequence for the text@NotNull SequenceBuilderGet a sequence builder for this sequence type@NotNull BasedSequenceGet empty prefix to this sequence@NotNull BasedSequenceGet empty suffix to this sequenceintGet the end offset of this sequence intogetBaseSequence()andgetBase()original text source.intgetIndexOffset(int index) Get the offset of index in this sequence mapped to offset intogetBaseSequence()andgetBase()original text source.@NotNull SegmentTreeGet the segment tree for this sequence@NotNull RangeGet the range of this sequence in originalgetBaseSequence()andgetBase()original text source.intGet the start offset of this sequence intogetBaseSequence()andgetBase()original text source.@NotNull BasedSequenceintersect(@NotNull BasedSequence other) start/end offset based intersection, not textualbooleanisBaseCharAt(int index, @NotNull CharPredicate predicate) Safe, if index out of range but based sequence has characters will return those, else returns '\0'booleanisContinuationOf(@NotNull BasedSequence other) Test if this sequence is a continuation of the given sequence in original source textbooleanisContinuedBy(@NotNull BasedSequence other) Test if the given sequence is a continuation of this sequence in original source text@NotNull BasedSequencenormalizeEndWithEOL(@NotNull ReplacedTextMapper textMapper) replace any \r\n and \r by \n, append terminating EOL if one is not present@NotNull BasedSequencenormalizeEOL(@NotNull ReplacedTextMapper textMapper) replace any \r\n and \r by \nstatic @NotNull BasedSequenceof(@Nullable CharSequence charSequence) static @NotNull BasedSequenceofSpaces(int count) @NotNull BasedSequenceprefixOf(@NotNull BasedSequence other) Get the prefix part of this from other, start/end offset based containment, not textual@NotNull BasedSequence@NotNull BasedSequenceprefixWithIndent(int maxColumns) Extend this based sequence to include characters from underlying based sequence taking tab expansion to 4th spaces into accountstatic @NotNull BasedSequencerepeatOf(char c, int count) static @NotNull BasedSequencerepeatOf(@NotNull CharSequence chars, int count) static @NotNull BasedSequencerepeatOf(@NotNull CharSequence chars, int startIndex, int endIndex) charsafeBaseCharAt(int index) Safe, if index out of range but based sequence has characters will return those, else returns '\0'@NotNull BasedSequencespliceAtEnd(@NotNull BasedSequence other) Splice the given sequence to the end of this one and return a BasedSequence of the result.@NotNull BasedSequencesubSequence(int startIndex, int endIndex) Get a portion of this sequence@NotNull BasedSequencesuffixOf(@NotNull BasedSequence other) Get the suffix part of this from other, start/end offset based containment, not textual@NotNull Stringunescape()Get the unescaped string of this sequence content@NotNull BasedSequenceunescape(@NotNull ReplacedTextMapper textMapper) Get the unescaped string of this sequence content@NotNull StringGet the unescaped string of this sequence content without unescaping entitiesMethods inherited from interface BasedOptionsHolder
allOptions, anyOptions, getOption, getOptionFlags, getOptionsMethods inherited from interface CharSequence
charAt, chars, codePoints, getChars, length, toStringMethods inherited from interface Comparable
compareToMethods inherited from interface IRichSequence
append, 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, emptyArray, 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, nullSequence, padding, padding, padEnd, padEnd, padStart, padStart, prefixOnceWith, prefixOnceWithEOL, prefixOnceWithSpace, prefixWith, prefixWithEOL, prefixWithSpace, prefixWithSpaces, removePrefix, removePrefix, removePrefixIgnoreCase, removeProperPrefix, removeProperPrefix, removeProperPrefixIgnoreCase, removeProperSuffix, removeProperSuffix, removeProperSuffixIgnoreCase, removeSuffix, removeSuffix, removeSuffixIgnoreCase, replace, replace, safeCharAt, safeSubSequence, safeSubSequence, sequenceOf, 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, toMapped, toNbSp, toSpc, toStringOrNull, 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
-
Field Details
-
NULL
-
EMPTY
-
EOL
-
SPACE
-
EMPTY_LIST
-
EMPTY_ARRAY
-
EMPTY_SEGMENTS
-
LINE_SEP
-
-
Method Details
-
of
-
ofSpaces
-
repeatOf
-
repeatOf
-
repeatOf
@NotNull static @NotNull BasedSequence repeatOf(@NotNull @NotNull CharSequence chars, int startIndex, int endIndex) -
getBuilder
Description copied from interface:IRichSequenceGet a sequence builder for this sequence type- Specified by:
getBuilderin interfaceIRichSequence<BasedSequence>- Returns:
- builder which can build this type of sequence
-
getBase
Get the underlying object on which this sequence contents are based- Returns:
- underlying object containing original text
-
getBaseSequence
Get the base sequence for the text- Returns:
- base sequence
-
getStartOffset
int getStartOffset()Get the start offset of this sequence intogetBaseSequence()andgetBase()original text source.- Returns:
- start offset in original text
-
getEndOffset
int getEndOffset()Get the end offset of this sequence intogetBaseSequence()andgetBase()original text source.- Returns:
- end offset in original text
-
getIndexOffset
int getIndexOffset(int index) Get the offset of index in this sequence mapped to offset intogetBaseSequence()andgetBase()original text source. NOTE: if the character at given index does not equal the corresponding character in the base sequence then this method should return -1 otherwise segmented based sequence will be created for original base character- Parameters:
index- index for which to get the offset in original source- Returns:
- offset of index of this sequence in original text
-
addSegments
Add segments for this sequence, replacing out of base characters with strings- Parameters:
builder- builder
-
getSegmentTree
Get the segment tree for this sequence- Returns:
- segment tree
-
getSourceRange
Get the range of this sequence in originalgetBaseSequence()andgetBase()original text source.- Returns:
- Range of start offset and end offset
-
subSequence
Get a portion of this sequence- Specified by:
subSequencein interfaceCharSequence- Specified by:
subSequencein interfaceIRichSequence<BasedSequence>- Parameters:
startIndex- offset from startIndex of this sequenceendIndex- offset from startIndex of this sequence- Returns:
- based sequence which represents the requested range of this sequence.
-
baseSubSequence
Get a portion of this sequence's base sequenceNOTE: 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
CharSubSequenceandSubSequenceothers use inherited implementation ofBasedSequenceImpl- Parameters:
startIndex- offset from 0 of original sequenceendIndex- offset from 0 of original sequence- Returns:
- based sequence whose contents reflect the selected portion
-
baseSubSequence
Get a portion of the original sequence that this sequence is based on- Parameters:
startIndex- offset from 0 of original sequence- Returns:
- based sequence from startIndex to the endIndex
-
safeBaseCharAt
char safeBaseCharAt(int index) Safe, if index out of range but based sequence has characters will return those, else returns '\0'Allows peeking into preceding/following characters to the ones contained in this sequence
- Parameters:
index- index in string- Returns:
- character or '\0' if index out of base sequence
-
isBaseCharAt
Safe, if index out of range but based sequence has characters will return those, else returns '\0'Allows peeking into preceding/following characters to the ones contained in this sequence
- Parameters:
index- index in stringpredicate- character set predicate- Returns:
- true if character at index tests true
-
getEmptyPrefix
Get empty prefix to this sequence- Returns:
- same as subSequence(0,0)
-
getEmptySuffix
Get empty suffix to this sequence- Returns:
- same as subSequence(length())
-
unescape
Get the unescaped string of this sequence content- Returns:
- unescaped text
-
unescapeNoEntities
Get the unescaped string of this sequence content without unescaping entities- Returns:
- unescaped text
-
unescape
Get the unescaped string of this sequence content- Parameters:
textMapper- replaced text mapper which will be uses to map unescaped index to original source index- Returns:
- unescaped text in based sequence
-
normalizeEOL
replace any \r\n and \r by \n- Parameters:
textMapper- replaced text mapper which will be uses to map unescaped index to original source index- Returns:
- based sequence with only \n for line separators
-
normalizeEndWithEOL
@NotNull @NotNull BasedSequence normalizeEndWithEOL(@NotNull @NotNull ReplacedTextMapper textMapper) replace any \r\n and \r by \n, append terminating EOL if one is not present- Parameters:
textMapper- replaced text mapper which will be uses to map unescaped index to original source index- Returns:
- based sequence with only \n for line separators and terminated by \n
-
isContinuedBy
Test if the given sequence is a continuation of this sequence in original source text- Parameters:
other- sequence to test- Returns:
- true if the given sequence is a continuation of this one in the original text
-
isContinuationOf
Test if this sequence is a continuation of the given sequence in original source text- Parameters:
other- sequence to test- Returns:
- true if this sequence is a continuation of the given sequence in original source text
-
spliceAtEnd
Splice the given sequence to the end of this one and return a BasedSequence of the result. Does not copy anything, creates a new based sequence of the original text but one that spans characters of this sequence and other- Parameters:
other- sequence to append to end of this one- Returns:
- based sequence that contains the span from start of this sequence and end of other
assertion will fail if the other sequence is not a continuation of this one
-
containsAllOf
start/end offset based containment, not textual- Parameters:
other- based sequence from the same base- Returns:
- true if other is contained in this
-
containsSomeOf
start/end offset based containment, not textual- Parameters:
other- based sequence from the same base- Returns:
- true if other is contained in this
-
prefixOf
Get the prefix part of this from other, start/end offset based containment, not textual- Parameters:
other- based sequence from the same base- Returns:
- prefix part of this as compared to other, start/end offset based, not content
-
suffixOf
Get the suffix part of this from other, start/end offset based containment, not textual- Parameters:
other- based sequence from the same base- Returns:
- suffix part of this as compared to other, start/end offset based, not content
-
intersect
start/end offset based intersection, not textual- Parameters:
other- based sequence from the same parent- Returns:
- sequence which is the intersection of the range of this and other
-
extendByAny
Extend this based sequence to include characters from underlying based sequence- Parameters:
charSet- set of characters to includemaxCount- maximum extra characters to include- Returns:
- sequence which
-
extendByAny
-
extendByOneOfAny
-
containsSomeIn
Test for line containing some of the characters in the set- Parameters:
charSet- set of characters to be tested- Returns:
- true if line contains some characters in the set
-
containsSomeNotIn
Test for line containing some characters not in the set- Parameters:
charSet- set of characters to be tested- Returns:
- true if line contains some characters not in the set
-
containsOnlyIn
Test for line contains only characters from the set- Parameters:
charSet- set of characters to be tested- Returns:
- true if line contains some characters from the set
-
containsOnlyNotIn
Test for line containing only characters not in the set- Parameters:
charSet- set of characters to be tested- Returns:
- true if line contains some characters from the set
-
extendByAnyNot
@NotNull @NotNull BasedSequence extendByAnyNot(@NotNull @NotNull CharPredicate charSet, int maxCount) Extend this based sequence to include characters from underlying based sequence not in character set- Parameters:
charSet- set of characters to includemaxCount- maximum extra characters to include- Returns:
- sequence which
-
extendByAnyNot
-
extendByOneOfAnyNot
-
extendToAny
@NotNull @Deprecated default @NotNull BasedSequence extendToAny(@NotNull @NotNull CharPredicate charSet, int maxCount) Deprecated. -
extendToAny
@NotNull @Deprecated default @NotNull BasedSequence extendToAny(@NotNull @NotNull CharPredicate charSet) Deprecated. -
extendToEndOfLine
@NotNull @NotNull BasedSequence extendToEndOfLine(@NotNull @NotNull CharPredicate eolChars, boolean includeEol) Extend in contained based sequence- Parameters:
eolChars- characters to consider as EOL, noteIRichSequence.eolStartLength(int)IRichSequence.eolEndLength(int)should report length of EOL found if length > 1includeEol- if to include the eol in the string- Returns:
- resulting sequence after extension. If already spanning the line then this sequence is returned. if the last character of this sequence are found in eolChars then no extension will be performed since it already includes the line end
-
extendToEndOfLine
-
extendToEndOfLine
-
extendToEndOfLine
-
extendToStartOfLine
@NotNull @NotNull BasedSequence extendToStartOfLine(@NotNull @NotNull CharPredicate eolChars, boolean includeEol) Extend in contained based sequence- Parameters:
eolChars- characters to consider as EOL, noteIRichSequence.eolStartLength(int)IRichSequence.eolEndLength(int)should report length of EOL found if length > 1includeEol- if to include the eol in the string- Returns:
- resulting sequence after extension. If already spanning the line then this sequence is returned. if the first character of this sequence are found in eolChars then no extension will be performed since it already includes the line end
-
extendToStartOfLine
-
extendToStartOfLine
-
extendToStartOfLine
-
prefixWithIndent
Extend this based sequence to include characters from underlying based sequence taking tab expansion to 4th spaces into account- Parameters:
maxColumns- maximum columns to include, defaultInteger.MAX_VALUE- Returns:
- sequence which
-
prefixWithIndent
-
baseLineColumnAtIndex
-
baseLineRangeAtIndex
-
baseEndOfLine
int baseEndOfLine(int index) -
baseEndOfLineAnyEOL
int baseEndOfLineAnyEOL(int index) -
baseStartOfLine
int baseStartOfLine(int index) -
baseStartOfLineAnyEOL
int baseStartOfLineAnyEOL(int index) -
baseColumnAtIndex
int baseColumnAtIndex(int index) -
baseLineColumnAtStart
-
baseLineColumnAtEnd
-
baseEndOfLine
int baseEndOfLine() -
baseEndOfLineAnyEOL
int baseEndOfLineAnyEOL() -
baseStartOfLine
int baseStartOfLine() -
baseStartOfLineAnyEOL
int baseStartOfLineAnyEOL() -
baseLineRangeAtStart
-
baseLineRangeAtEnd
-
baseColumnAtEnd
int baseColumnAtEnd() -
baseColumnAtStart
int baseColumnAtStart()
-