Uses of Interface
com.vladsch.flexmark.util.sequence.BasedSequence
-
-
Uses of BasedSequence in com.vladsch.flexmark.util.sequence
Subinterfaces of BasedSequence in com.vladsch.flexmark.util.sequence Modifier and Type Interface Description interfaceReplacedBasedSequenceInterface implemented by sequences which do not contain contiguous base characters from startOffset to endOffsetClasses in com.vladsch.flexmark.util.sequence that implement BasedSequence Modifier and Type Class Description static classBasedSequence.EmptyBasedSequenceclassBasedSequenceImplImplementation of BaseSequenceclassCharSubSequenceA CharSequence that references original char[] a subSequence() returns a sub-sequence from the original base sequenceclassMappedBasedSequenceA BasedSequence which maps characters according to CharMapperclassPrefixedSubSequenceA BasedSequence with an out of scope of original char sequence prefixclassSegmentedSequenceA BasedSequence which consists of segments of other BasedSequencesclassSegmentedSequenceFullA BasedSequence which consists of segments of other BasedSequences NOTE: very efficient for random access but extremely wasteful with space by allocating 4 bytes per character in the sequence with corresponding construction penalty use SegmentedSequenceTree which is binary tree based segmented sequence with minimal overhead and optimized to give penalty free random access for most applications.classSegmentedSequenceTreeA BasedSequence which consists of segments of other BasedSequences NOTE: very efficient for random access but extremely wasteful with space by allocating 4 bytes per character in the sequence with corresponding construction penalty use SegmentedSequenceTree which is binary tree based segmented sequence with minimal overhead and optimized to give penalty free random access for most applications.classSubSequenceA BasedSequence implementation which wraps original CharSequence to provide a BasedSequence for all its subsequences, a subSequence() returns a SubSequence from the original base sequence.Fields in com.vladsch.flexmark.util.sequence declared as BasedSequence Modifier and Type Field Description protected BasedSequenceSegmentedSequence. baseSeqstatic BasedSequenceBasedSequence. EMPTYstatic BasedSequence[]BasedSequence. EMPTY_ARRAYstatic BasedSequence[]BasedSequence. EMPTY_SEGMENTSstatic BasedSequenceBasedSequence. EOLstatic BasedSequenceBasedSequence. LINE_SEPstatic BasedSequenceBasedSequence. NULLstatic BasedSequenceBasedSequence. SPACEFields in com.vladsch.flexmark.util.sequence with type parameters of type BasedSequence Modifier and Type Field Description static List<BasedSequence>BasedSequence. EMPTY_LISTMethods in com.vladsch.flexmark.util.sequence that return BasedSequence Modifier and Type Method Description static BasedSequenceBasedUtils. asBased(CharSequence sequence)@NotNull BasedSequenceRange. basedSafeSubSequence(@NotNull CharSequence charSequence)@NotNull BasedSequenceRange. basedSubSequence(@NotNull CharSequence charSequence)@NotNull BasedSequenceBasedSequence. baseSubSequence(int startIndex)Get a portion of the original sequence that this sequence is based on@NotNull BasedSequenceBasedSequence. baseSubSequence(int startIndex, int endIndex)Get a portion of this sequence's base sequence@NotNull BasedSequenceBasedSequence.EmptyBasedSequence. baseSubSequence(int startIndex, int endIndex)@NotNull BasedSequenceBasedSequenceImpl. baseSubSequence(int startIndex)@NotNull BasedSequenceBasedSequenceImpl. baseSubSequence(int startIndex, int endIndex)@NotNull BasedSequencePrefixedSubSequence. baseSubSequence(int startIndex, int endIndex)@NotNull BasedSequenceSegmentedSequence. baseSubSequence(int startIndex, int endIndex)static @NotNull BasedSequenceEscaping. collapseWhitespace(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)static BasedSequenceSegmentedSequence. create(BasedSequence... segments)static BasedSequenceSegmentedSequence. create(BasedSequence basedSequence, @NotNull Iterable<? extends BasedSequence> segments)UsegetBuilder()and thenISequenceBuilder.addAll(Iterable)or if you know which are based segments vs.static BasedSequenceSegmentedSequence. create(SequenceBuilder builder)@NotNull BasedSequence[]BasedSequenceImpl. emptyArray()static BasedSequenceHtml5Entities. entityToSequence(BasedSequence input)static @NotNull BasedSequenceEscaping. escapeHtml(@NotNull BasedSequence s, boolean preserveEntities, @NotNull ReplacedTextMapper textMapper)@NotNull BasedSequenceBasedSequence. extendByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)@NotNull BasedSequenceBasedSequence. extendByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet, int maxCount)Extend this based sequence to include characters from underlying based sequence@NotNull BasedSequenceBasedSequenceImpl. extendByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)@NotNull BasedSequenceBasedSequenceImpl. extendByAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet, int maxCount)@NotNull BasedSequenceBasedSequence. extendByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)@NotNull BasedSequenceBasedSequence. 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 BasedSequenceBasedSequenceImpl. extendByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)@NotNull BasedSequenceBasedSequenceImpl. extendByAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet, int maxCount)@NotNull BasedSequenceBasedSequence. extendByOneOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)@NotNull BasedSequenceBasedSequenceImpl. extendByOneOfAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)@NotNull BasedSequenceBasedSequence. extendByOneOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)@NotNull BasedSequenceBasedSequenceImpl. extendByOneOfAnyNot(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)default @NotNull BasedSequenceBasedSequence. extendToAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet)Deprecated.default @NotNull BasedSequenceBasedSequence. extendToAny(@NotNull com.vladsch.flexmark.util.misc.CharPredicate charSet, int maxCount)Deprecated.@NotNull BasedSequenceBasedSequence. extendToEndOfLine()@NotNull BasedSequenceBasedSequence. extendToEndOfLine(boolean includeEol)@NotNull BasedSequenceBasedSequence. extendToEndOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars)@NotNull BasedSequenceBasedSequence. extendToEndOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, boolean includeEol)Extend in contained based sequence@NotNull BasedSequenceBasedSequenceImpl. extendToEndOfLine()@NotNull BasedSequenceBasedSequenceImpl. extendToEndOfLine(boolean includeEol)@NotNull BasedSequenceBasedSequenceImpl. extendToEndOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars)@NotNull BasedSequenceBasedSequenceImpl. extendToEndOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, boolean includeEol)@NotNull BasedSequenceBasedSequence. extendToStartOfLine()@NotNull BasedSequenceBasedSequence. extendToStartOfLine(boolean includeEol)@NotNull BasedSequenceBasedSequence. extendToStartOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars)@NotNull BasedSequenceBasedSequence. extendToStartOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, boolean includeEol)Extend in contained based sequence@NotNull BasedSequenceBasedSequenceImpl. extendToStartOfLine()@NotNull BasedSequenceBasedSequenceImpl. extendToStartOfLine(boolean includeEol)@NotNull BasedSequenceBasedSequenceImpl. extendToStartOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars)@NotNull BasedSequenceBasedSequenceImpl. extendToStartOfLine(@NotNull com.vladsch.flexmark.util.misc.CharPredicate eolChars, boolean includeEol)static BasedSequenceBasedSequenceImpl. firstNonNull(BasedSequence... sequences)@NotNull BasedSequenceBasedSequence.EmptyBasedSequence. getBase()@NotNull BasedSequenceBasedSequence.EmptyBasedSequence. getBaseSequence()@NotNull BasedSequenceBasedSequence. getBaseSequence()Get the base sequence for the text@NotNull BasedSequenceMappedBasedSequence. getBaseSequence()@NotNull BasedSequencePrefixedSubSequence. getBaseSequence()@NotNull BasedSequenceSegmentedSequence. getBaseSequence()@NotNull BasedSequenceLineAppendable. getBeforeEolPrefix()Get prefix used before EOL@NotNull BasedSequenceLineAppendableImpl. getBeforeEolPrefix()@NotNull BasedSequenceMappedBasedSequence. getCharSequence()@NotNull BasedSequenceBasedSequence. getEmptyPrefix()Get empty prefix to this sequence@NotNull BasedSequenceBasedSequenceImpl. getEmptyPrefix()@NotNull BasedSequenceBasedSequence. getEmptySuffix()Get empty suffix to this sequence@NotNull BasedSequenceBasedSequenceImpl. getEmptySuffix()@NotNull BasedSequenceLineInfo. getEOL()@NotNull BasedSequenceLineAppendable. getIndentPrefix()Get prefix appended after a new line character for every indent level@NotNull BasedSequenceLineAppendableImpl. getIndentPrefix()@NotNull BasedSequenceLineAppendable. getLine(int lineIndex)Get Line at given line index@NotNull BasedSequenceLineAppendableImpl. getLine(int lineIndex)@NotNull BasedSequenceLineInfo. getLine()default @NotNull BasedSequenceLineAppendable. getLineContent(int lineIndex)Get Line content of given line@NotNull BasedSequenceLineInfo. getLineNoEOL()default @NotNull BasedSequenceLineAppendable. getLinePrefix(int lineIndex)Get prefix of given line@NotNull BasedSequenceLineAppendable. getPrefix()Get prefix being applied to all lines, even in pre-formatted sections This is the prefix that will be set after EOL@NotNull BasedSequenceLineAppendableImpl. getPrefix()@NotNull BasedSequenceLineInfo. getPrefix()BasedSequenceReplacedTextMapper. getReplacedSequence()@NotNull BasedSequenceLineInfo. getText()@NotNull BasedSequenceLineInfo. getTextNoEOL()@NotNull BasedSequenceBasedSequence. intersect(@NotNull BasedSequence other)start/end offset based intersection, not textual@NotNull BasedSequenceBasedSequenceImpl. intersect(@NotNull BasedSequence other)static @NotNull BasedSequenceMappedBasedSequence. mappedOf(@NotNull BasedSequence baseSeq, @NotNull CharMapper mapper)@NotNull BasedSequenceBasedSequence. normalizeEndWithEOL(@NotNull ReplacedTextMapper textMapper)replace any \r\n and \r by \n, append terminating EOL if one is not present@NotNull BasedSequenceBasedSequenceImpl. normalizeEndWithEOL(@NotNull ReplacedTextMapper textMapper)static @NotNull BasedSequenceEscaping. normalizeEndWithEOL(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)Normalize eol: embedded \r and \r\n are converted to \n@NotNull BasedSequenceBasedSequence. normalizeEOL(@NotNull ReplacedTextMapper textMapper)replace any \r\n and \r by \n@NotNull BasedSequenceBasedSequenceImpl. normalizeEOL(@NotNull ReplacedTextMapper textMapper)static @NotNull BasedSequenceEscaping. normalizeEOL(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)Normalize eol: embedded \r and \r\n are converted to \nstatic @NotNull BasedSequenceEscaping. normalizeEOL(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper, boolean endWithEOL)Normalize eol: embedded \r and \r\n are converted to \n@NotNull BasedSequenceBasedSequenceImpl. nullSequence()static @NotNull BasedSequenceBasedSequence. of(@Nullable CharSequence charSequence)static BasedSequenceSegmentedSequence. of(BasedSequence... segments)Deprecated.static BasedSequenceSegmentedSequence. of(BasedSequence basedSequence, @NotNull Iterable<? extends BasedSequence> segments)Deprecated.usegetBuilder()and thenISequenceBuilder.addAll(Iterable)or if you know which are based segments vs.static BasedSequenceSegmentedSequenceFull. of(BasedSequence... segments)Deprecated.static BasedSequenceSegmentedSequenceFull. of(BasedSequence basedSequence, @NotNull Iterable<? extends BasedSequence> segments)Deprecated.usegetBuilder()and thenISequenceBuilder.addAll(Iterable)or if you know which are based segments vs.static BasedSequenceSubSequence. of(@Nullable CharSequence charSequence)Deprecated.static BasedSequenceSubSequence. of(@Nullable CharSequence charSequence, int startIndex)Deprecated.static BasedSequenceSubSequence. of(@Nullable CharSequence charSequence, int startIndex, int endIndex)Deprecated.static @NotNull BasedSequenceBasedSequence. ofSpaces(int count)static @NotNull BasedSequenceEscaping. percentDecodeUrl(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)static @NotNull BasedSequenceEscaping. percentEncodeUrl(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)@NotNull BasedSequenceBasedSequence. prefixOf(@NotNull BasedSequence other)Get the prefix part of this from other, start/end offset based containment, not textual@NotNull BasedSequenceBasedSequenceImpl. prefixOf(@NotNull BasedSequence other)@NotNull BasedSequenceBasedSequenceImpl. prefixWith(@Nullable CharSequence prefix)@NotNull BasedSequenceBasedSequence. prefixWithIndent()@NotNull BasedSequenceBasedSequence. prefixWithIndent(int maxColumns)Extend this based sequence to include characters from underlying based sequence taking tab expansion to 4th spaces into account@NotNull BasedSequenceBasedSequenceImpl. prefixWithIndent()@NotNull BasedSequenceBasedSequenceImpl. prefixWithIndent(int maxColumns)static @NotNull BasedSequenceEscaping. removeAll(@NotNull BasedSequence s, @NotNull CharSequence remove, @NotNull ReplacedTextMapper textMapper)Replace entities and backslash escapes with literal characters.static @NotNull BasedSequenceBasedSequence. repeatOf(char c, int count)static @NotNull BasedSequenceBasedSequence. repeatOf(@NotNull CharSequence chars, int count)static @NotNull BasedSequenceBasedSequence. repeatOf(@NotNull CharSequence chars, int startIndex, int endIndex)@NotNull BasedSequenceBasedSequenceImpl. sequenceOf(@Nullable CharSequence charSequence, int startIndex, int endIndex)@NotNull BasedSequenceMappedBasedSequence. sequenceOf(@Nullable CharSequence baseSeq, int startIndex, int endIndex)@NotNull BasedSequenceBasedSequence. spliceAtEnd(@NotNull BasedSequence other)Splice the given sequence to the end of this one and return a BasedSequence of the result.@NotNull BasedSequenceBasedSequenceImpl. spliceAtEnd(@NotNull BasedSequence other)@NotNull BasedSequenceBasedSequence.EmptyBasedSequence. subSequence(int i, int i1)@NotNull BasedSequenceBasedSequence. subSequence(int startIndex, int endIndex)Get a portion of this sequence@NotNull BasedSequenceMappedBasedSequence. subSequence(int startIndex, int endIndex)@NotNull BasedSequencePrefixedSubSequence. subSequence(int startIndex, int endIndex)@NotNull BasedSequenceRange. subSequence(@NotNull CharSequence charSequence)Deprecated.useRange.basedSubSequence(CharSequence)instead@NotNull BasedSequenceSegmentedSequenceFull. subSequence(int startIndex, int endIndex)@NotNull BasedSequenceSegmentedSequenceTree. subSequence(int startIndex, int endIndex)@NotNull BasedSequenceBasedSequence. suffixOf(@NotNull BasedSequence other)Get the suffix part of this from other, start/end offset based containment, not textual@NotNull BasedSequenceBasedSequenceImpl. suffixOf(@NotNull BasedSequence other)@NotNull BasedSequenceBasedSequenceImpl. toMapped(CharMapper mapper)@NotNull BasedSequenceMappedBasedSequence. toMapped(CharMapper mapper)@NotNull BasedSequenceBasedSequence. unescape(@NotNull ReplacedTextMapper textMapper)Get the unescaped string of this sequence content@NotNull BasedSequenceBasedSequenceImpl. unescape(@NotNull ReplacedTextMapper textMapper)static @NotNull BasedSequenceEscaping. unescape(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)Replace entities and backslash escapes with literal characters.static @NotNull BasedSequenceEscaping. unescapeHtml(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)Replace entities and backslash escapes with literal characters.static @NotNull BasedSequenceEscaping. unescapeHtml(@NotNull BasedSequence s, @NotNull List<Range> ranges, @NotNull ReplacedTextMapper textMapper)Replace entities and backslash escapes with literal characters.Methods in com.vladsch.flexmark.util.sequence that return types with arguments of type BasedSequence Modifier and Type Method Description default @NotNull Iterable<BasedSequence>LineAppendable. getLines()default @NotNull Iterable<BasedSequence>LineAppendable. getLines(boolean withPrefixes)default @NotNull Iterable<BasedSequence>LineAppendable. getLines(int maxTrailingBlankLines)default @NotNull Iterable<BasedSequence>LineAppendable. getLines(int maxTrailingBlankLines, boolean withPrefixes)@NotNull Iterable<BasedSequence>LineAppendable. getLines(int maxTrailingBlankLines, int startLine, int endLine, boolean withPrefixes)Full line iterator over some lines@NotNull Iterable<BasedSequence>LineAppendableImpl. getLines(int maxTrailingBlankLines, int startLine, int endLine, boolean withPrefixes)ArrayList<BasedSequence>ReplacedTextMapper. getReplacedSegments()Methods in com.vladsch.flexmark.util.sequence with parameters of type BasedSequence Modifier and Type Method Description voidReplacedTextMapper. addReplacedText(int startIndex, int endIndex, BasedSequence replacedSequence)static @NotNull BasedSequenceEscaping. collapseWhitespace(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)booleanBasedSequence. containsAllOf(@NotNull BasedSequence other)start/end offset based containment, not textualbooleanBasedSequenceImpl. containsAllOf(@NotNull BasedSequence other)booleanBasedSequence. containsSomeOf(@NotNull BasedSequence other)start/end offset based containment, not textualbooleanBasedSequenceImpl. containsSomeOf(@NotNull BasedSequence other)static BasedSequenceSegmentedSequence. create(BasedSequence... segments)static BasedSequenceSegmentedSequence. create(BasedSequence basedSequence, @NotNull Iterable<? extends BasedSequence> segments)UsegetBuilder()and thenISequenceBuilder.addAll(Iterable)or if you know which are based segments vs.static SegmentedSequenceFullSegmentedSequenceFull. create(@NotNull BasedSequence baseSequence, ISegmentBuilder<?> builder)Base Constructorstatic SegmentedSequenceTreeSegmentedSequenceTree. create(@NotNull BasedSequence baseSeq, ISegmentBuilder<?> builder)Base Constructorstatic BasedSequenceHtml5Entities. entityToSequence(BasedSequence input)static @NotNull BasedSequenceEscaping. escapeHtml(@NotNull BasedSequence s, boolean preserveEntities, @NotNull ReplacedTextMapper textMapper)static BasedSequenceBasedSequenceImpl. firstNonNull(BasedSequence... sequences)static voidBasedUtils. generateSegments(IBasedSegmentBuilder<?> segments, @NotNull BasedSequence chars)Generate segments for given sequence@NotNull BasedSequenceBasedSequence. intersect(@NotNull BasedSequence other)start/end offset based intersection, not textual@NotNull BasedSequenceBasedSequenceImpl. intersect(@NotNull BasedSequence other)booleanBasedSequence. isContinuationOf(@NotNull BasedSequence other)Test if this sequence is a continuation of the given sequence in original source textbooleanBasedSequenceImpl. isContinuationOf(@NotNull BasedSequence other)booleanBasedSequence. isContinuedBy(@NotNull BasedSequence other)Test if the given sequence is a continuation of this sequence in original source textbooleanBasedSequenceImpl. isContinuedBy(@NotNull BasedSequence other)static @NotNull BasedSequenceMappedBasedSequence. mappedOf(@NotNull BasedSequence baseSeq, @NotNull CharMapper mapper)static @NotNull BasedSequenceEscaping. normalizeEndWithEOL(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)Normalize eol: embedded \r and \r\n are converted to \nstatic @NotNull BasedSequenceEscaping. normalizeEOL(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)Normalize eol: embedded \r and \r\n are converted to \nstatic @NotNull BasedSequenceEscaping. normalizeEOL(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper, boolean endWithEOL)Normalize eol: embedded \r and \r\n are converted to \nstatic PrefixedSubSequencePrefixedSubSequence. of(CharSequence prefix, BasedSequence baseSeq)Deprecated.static PrefixedSubSequencePrefixedSubSequence. of(CharSequence prefix, BasedSequence baseSeq, int startIndex)Deprecated.static PrefixedSubSequencePrefixedSubSequence. of(CharSequence prefix, BasedSequence baseSeq, int startIndex, int endIndex)Deprecated.static BasedSequenceSegmentedSequence. of(BasedSequence... segments)Deprecated.static BasedSequenceSegmentedSequence. of(BasedSequence basedSequence, @NotNull Iterable<? extends BasedSequence> segments)Deprecated.usegetBuilder()and thenISequenceBuilder.addAll(Iterable)or if you know which are based segments vs.static BasedSequenceSegmentedSequenceFull. of(BasedSequence... segments)Deprecated.static BasedSequenceSegmentedSequenceFull. of(BasedSequence basedSequence, @NotNull Iterable<? extends BasedSequence> segments)Deprecated.usegetBuilder()and thenISequenceBuilder.addAll(Iterable)or if you know which are based segments vs.static @NotNull BasedSequenceEscaping. percentDecodeUrl(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)static @NotNull BasedSequenceEscaping. percentEncodeUrl(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)@NotNull BasedSequenceBasedSequence. prefixOf(@NotNull BasedSequence other)Get the prefix part of this from other, start/end offset based containment, not textual@NotNull BasedSequenceBasedSequenceImpl. prefixOf(@NotNull BasedSequence other)static PrefixedSubSequencePrefixedSubSequence. prefixOf(CharSequence prefix, BasedSequence baseSeq)static PrefixedSubSequencePrefixedSubSequence. prefixOf(CharSequence prefix, BasedSequence baseSeq, int startIndex)static PrefixedSubSequencePrefixedSubSequence. prefixOf(CharSequence prefix, BasedSequence baseSeq, int startIndex, int endIndex)static @NotNull BasedSequenceEscaping. removeAll(@NotNull BasedSequence s, @NotNull CharSequence remove, @NotNull ReplacedTextMapper textMapper)Replace entities and backslash escapes with literal characters.static PrefixedSubSequencePrefixedSubSequence. repeatOf(char prefix, int count, BasedSequence baseSeq)static PrefixedSubSequencePrefixedSubSequence. repeatOf(CharSequence prefix, int count, BasedSequence baseSeq)@NotNull BasedSequenceBasedSequence. spliceAtEnd(@NotNull BasedSequence other)Splice the given sequence to the end of this one and return a BasedSequence of the result.@NotNull BasedSequenceBasedSequenceImpl. spliceAtEnd(@NotNull BasedSequence other)voidReplacedTextMapper. startNestedReplacement(BasedSequence sequence)@NotNull BasedSequenceBasedSequence. suffixOf(@NotNull BasedSequence other)Get the suffix part of this from other, start/end offset based containment, not textual@NotNull BasedSequenceBasedSequenceImpl. suffixOf(@NotNull BasedSequence other)static @NotNull BasedSequenceEscaping. unescape(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)Replace entities and backslash escapes with literal characters.static @NotNull BasedSequenceEscaping. unescapeHtml(@NotNull BasedSequence s, @NotNull ReplacedTextMapper textMapper)Replace entities and backslash escapes with literal characters.static @NotNull BasedSequenceEscaping. unescapeHtml(@NotNull BasedSequence s, @NotNull List<Range> ranges, @NotNull ReplacedTextMapper textMapper)Replace entities and backslash escapes with literal characters.Method parameters in com.vladsch.flexmark.util.sequence with type arguments of type BasedSequence Modifier and Type Method Description static BasedSequenceSegmentedSequence. create(BasedSequence basedSequence, @NotNull Iterable<? extends BasedSequence> segments)UsegetBuilder()and thenISequenceBuilder.addAll(Iterable)or if you know which are based segments vs.static BasedSequenceSegmentedSequence. of(BasedSequence basedSequence, @NotNull Iterable<? extends BasedSequence> segments)Deprecated.usegetBuilder()and thenISequenceBuilder.addAll(Iterable)or if you know which are based segments vs.static BasedSequenceSegmentedSequenceFull. of(BasedSequence basedSequence, @NotNull Iterable<? extends BasedSequence> segments)Deprecated.usegetBuilder()and thenISequenceBuilder.addAll(Iterable)or if you know which are based segments vs.Constructors in com.vladsch.flexmark.util.sequence with parameters of type BasedSequence Constructor Description ReplacedTextMapper(BasedSequence original)SegmentedSequence(BasedSequence baseSeq, int startOffset, int endOffset, int length) -
Uses of BasedSequence in com.vladsch.flexmark.util.sequence.builder
Methods in com.vladsch.flexmark.util.sequence.builder that return BasedSequence Modifier and Type Method Description @NotNull BasedSequenceBasedSegmentBuilder. getBaseSequence()@NotNull BasedSequenceIBasedSegmentBuilder. getBaseSequence()@NotNull BasedSequenceSequenceBuilder. getBaseSequence()@Nullable BasedSequenceSequenceBuilder. getSingleBasedSequence()@NotNull BasedSequenceSequenceBuilder. toSequence()@NotNull BasedSequenceSequenceBuilder. toSequence(@NotNull BasedSequence altSequence)Construct sequence from this builder using another based sequence which is character identical to this builder's baseSeq@NotNull BasedSequenceSequenceBuilder. 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 BasedSequenceSequenceBuilder. 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 lengthMethods in com.vladsch.flexmark.util.sequence.builder with parameters of type BasedSequence Modifier and Type Method Description static @NotNull BasedSegmentBuilderBasedSegmentBuilder. emptyBuilder(@NotNull BasedSequence sequence)static @NotNull BasedSegmentBuilderBasedSegmentBuilder. emptyBuilder(@NotNull BasedSequence sequence, int options)static @NotNull BasedSegmentBuilderBasedSegmentBuilder. emptyBuilder(@NotNull BasedSequence sequence, @NotNull SegmentOptimizer optimizer)static @NotNull BasedSegmentBuilderBasedSegmentBuilder. emptyBuilder(@NotNull BasedSequence sequence, @NotNull SegmentOptimizer optimizer, int options)static @NotNull SequenceBuilderSequenceBuilder. emptyBuilder(@NotNull BasedSequence base)static @NotNull SequenceBuilderSequenceBuilder. emptyBuilder(@NotNull BasedSequence base, int options)static @NotNull SequenceBuilderSequenceBuilder. emptyBuilder(@NotNull BasedSequence base, int options, @NotNull SegmentOptimizer optimizer)static @NotNull SequenceBuilderSequenceBuilder. emptyBuilder(@NotNull BasedSequence base, @NotNull SegmentOptimizer optimizer)@NotNull BasedSequenceSequenceBuilder. toSequence(@NotNull BasedSequence altSequence)Construct sequence from this builder using another based sequence which is character identical to this builder's baseSeq@NotNull BasedSequenceSequenceBuilder. 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 BasedSequenceSequenceBuilder. 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 lengthConstructors in com.vladsch.flexmark.util.sequence.builder with parameters of type BasedSequence Constructor Description BasedSegmentBuilder(@NotNull BasedSequence baseSeq)BasedSegmentBuilder(@NotNull BasedSequence baseSeq, int options)BasedSegmentBuilder(@NotNull BasedSequence baseSeq, @NotNull SegmentOptimizer optimizer)BasedSegmentBuilder(@NotNull BasedSequence baseSeq, @NotNull SegmentOptimizer optimizer, int options) -
Uses of BasedSequence in com.vladsch.flexmark.util.sequence.builder.tree
Fields in com.vladsch.flexmark.util.sequence.builder.tree declared as BasedSequence Modifier and Type Field Description protected @NotNull BasedSequenceBasedOffsetTracker. sequenceMethods in com.vladsch.flexmark.util.sequence.builder.tree that return BasedSequence Modifier and Type Method Description @NotNull BasedSequenceBasedOffsetTracker. getSequence()Methods in com.vladsch.flexmark.util.sequence.builder.tree with parameters of type BasedSequence Modifier and Type Method Description static @NotNull SegmentOffsetTreeSegmentOffsetTree. build(@NotNull BasedSequence baseSeq)static @NotNull BasedOffsetTrackerBasedOffsetTracker. create(@NotNull BasedSequence sequence)Create a based offset tracker for the given sequencestatic @NotNull BasedOffsetTrackerBasedOffsetTracker. create(@NotNull BasedSequence sequence, @NotNull SegmentOffsetTree segmentOffsetTree)Create a based offset tracker for the given sequence@Nullable SegmentSegmentOffsetTree. findSegment(int index, int startPos, int endPos, @NotNull BasedSequence baseSeq, @Nullable Segment hint)Deprecated.@Nullable SegmentSegmentOffsetTree. findSegment(int index, @NotNull BasedSequence baseSeq, @Nullable Segment hint)Deprecated.static @Nullable SegmentSegmentTree. findSegment(int index, int[] treeData, int startPos, int endPos, byte[] segmentBytes, @NotNull BasedSequence baseSeq)@Nullable SegmentSegmentTree. findSegment(int index, int startPos, int endPos, @NotNull BasedSequence baseSeq, @Nullable Segment hint)@Nullable SegmentSegmentTree. findSegment(int index, @NotNull BasedSequence baseSeq, @Nullable Segment hint)@Nullable SegmentSegmentOffsetTree. findSegmentByOffset(int offset, @NotNull BasedSequence baseSeq, @Nullable Segment hint)@Nullable SegmentSegmentOffsetTree. getNextText(@NotNull Segment segment, @NotNull BasedSequence baseSeq)@Nullable SegmentSegmentOffsetTree. getPrevAnchor(int pos, @NotNull BasedSequence baseSeq)Deprecated.static @Nullable SegmentSegmentTree. getPrevAnchor(int pos, int[] treeData, byte[] segmentBytes, @NotNull BasedSequence baseSeq)@Nullable SegmentSegmentTree. getPrevAnchor(int pos, @NotNull BasedSequence baseSeq)@Nullable SegmentSegmentOffsetTree. getPreviousText(@NotNull Segment segment, @NotNull BasedSequence baseSeq)static SegmentSegment. getSegment(byte[] bytes, int byteOffset, int pos, int indexOffset, @NotNull BasedSequence basedSequence)@NotNull SegmentSegmentOffsetTree. getSegment(int pos, @NotNull BasedSequence baseSeq)static @NotNull SegmentSegmentTree. getSegment(int pos, int[] treeData, byte[] segmentBytes, @NotNull BasedSequence baseSeq)@NotNull SegmentSegmentTree. getSegment(int byteOffset, int pos, int startIndex, @NotNull BasedSequence baseSeq)@NotNull SegmentSegmentTree. getSegment(int pos, @NotNull BasedSequence baseSeq)@NotNull SegmentOffsetTreeSegmentTree. getSegmentOffsetTree(@NotNull BasedSequence baseSeq)Build an offset segment tree from this index segment tree@NotNull SegmentTreeRangeSegmentOffsetTree. getSegmentRange(int startIndex, int endIndex, int startPos, int endPos, @NotNull BasedSequence baseSeq, @Nullable Segment hint)Deprecated.@NotNull SegmentTreeRangeSegmentTree. getSegmentRange(int startIndex, int endIndex, int startPos, int endPos, @NotNull BasedSequence baseSequence, @Nullable Segment hint)intSegmentTree. getTextEndOffset(Segment segment, @NotNull BasedSequence baseSequence)intSegmentTree. getTextStartOffset(Segment segment, @NotNull BasedSequence baseSequence)@NotNull StringSegmentOffsetTree. toString(@NotNull BasedSequence baseSeq)@NotNull StringSegmentTree. toString(@NotNull BasedSequence baseSeq)Constructors in com.vladsch.flexmark.util.sequence.builder.tree with parameters of type BasedSequence Constructor Description BasedOffsetTracker(@NotNull BasedSequence sequence, @NotNull SegmentOffsetTree segmentOffsetTree)BasedOffsetTracker(@NotNull BasedSequence sequence, @NotNull SegmentTree segmentTree) -
Uses of BasedSequence in com.vladsch.flexmark.util.sequence.mappers
Methods in com.vladsch.flexmark.util.sequence.mappers with parameters of type BasedSequence Modifier and Type Method Description booleanSpecialLeadInCharsHandler. escape(@NotNull BasedSequence sequence, @Nullable com.vladsch.flexmark.util.data.DataHolder options, @NotNull Consumer<CharSequence> consumer)Escape special lead-in characters which start a block element if first non-whitespace on the linebooleanSpecialLeadInHandler. escape(@NotNull BasedSequence sequence, @Nullable com.vladsch.flexmark.util.data.DataHolder options, @NotNull Consumer<CharSequence> consumer)Escape special lead-in characters which start a block element if first non-whitespace on the linebooleanSpecialLeadInStartsWithCharsHandler. escape(@NotNull BasedSequence sequence, @Nullable com.vladsch.flexmark.util.data.DataHolder options, @NotNull Consumer<CharSequence> consumer)Escape special lead-in characters which start a block element if first non-whitespace on the linebooleanSpecialLeadInCharsHandler. unEscape(@NotNull BasedSequence sequence, @Nullable com.vladsch.flexmark.util.data.DataHolder options, @NotNull Consumer<CharSequence> consumer)UnEscape special lead-in characters which start a block element if first non-whitespace on the linebooleanSpecialLeadInHandler. unEscape(@NotNull BasedSequence sequence, @Nullable com.vladsch.flexmark.util.data.DataHolder options, @NotNull Consumer<CharSequence> consumer)UnEscape special lead-in characters which start a block element if first non-whitespace on the linebooleanSpecialLeadInStartsWithCharsHandler. unEscape(@NotNull BasedSequence sequence, @Nullable com.vladsch.flexmark.util.data.DataHolder options, @NotNull Consumer<CharSequence> consumer)UnEscape special lead-in characters which start a block element if first non-whitespace on the line
-