Top Interfaces Classes Enums
module flexmark.util.sequence

Package com.vladsch.flexmark.util.sequence


Interface Summary

Modifier and TypeInterface and Description
public interface
BasedOptionsHolder

Implemented by BasedOptionsSequence, use instance of it to pass to BasedSequence#of(CharSequence) and options enabled in it will be accessible to all based sequences or uses of these for testing for options or getting options.

public interface
BasedSequence

A CharSequence that references original char sequence with offsets into original preserved.

public interface
public interface
IRichSequence<T extends IRichSequence<T>>

A CharSequence that provides a rich set of manipulation methods.

public interface
LineAppendable

Used to collect line text for further processing

control output of new lines limiting them to terminate text but not create blank lines, and control number of blank lines output, eliminate spaces before and after an \n, except in prefixes and indents controlled by this class.

public interface
MappedSequence<T extends CharSequence>

A CharSequence that maps characters according to CharMapper

public interface
ReplacedBasedSequence

Interface implemented by sequences which do not contain contiguous base characters from startOffset to endOffset

public interface
public interface

Class Summary

Modifier and TypeClass and Description
public class
BasedOptionsSequence

A BasedSequence with offset tracking that follows editing operations and subSequence() chopping as best as it can

a subSequence() returns a sub-sequence from the original base sequence with updated offset tracking

public abstract class
BasedSequenceImpl

Implementation of BaseSequence

public class
CharSubSequence

A CharSequence that references original char[] a subSequence() returns a sub-sequence from the original base sequence

Note

'\0' changed to '�' use com.vladsch.flexmark.util.sequence.mappers.NullEncoder#decodeNull mapper to get original null chars.

public class
public class
public abstract class
IRichSequenceBase<T extends IRichSequence<T>>

An abstract base for RichSequence which implements most of the methods allowing subclasses to implement RichSequence with minimal support methods

public class
public class
LineInfo

Line information in LineAppendable

public class
MappedBasedSequence

A BasedSequence which maps characters according to CharMapper

public class
MappedRichSequence

A CharSequence that maps characters according to CharMapper

public class
PlaceholderReplacer

Used to replace placeholder text in the form of open/close char such as <text> in a markdown document.

public class
PrefixedSubSequence

A BasedSequence with an out of scope of original char sequence prefix

a subSequence() returns a sub-sequence from the original base sequence, possibly with a prefix if it falls in range

public class
public class
RepeatedSequence

CharSequence that repeats in a wraparound the given sequence.

public class
ReplacedTextMapper

Class which tracks text replacements to provide original offset from modified offset.

public class
public class
RichSequenceImpl

A RichSequence implementation

Note

'\0' changed to '�' use com.vladsch.flexmark.util.sequence.mappers.NullEncoder#decodeNull mapper to get original null chars.

public abstract class
SegmentedSequence

A BasedSequence which consists of segments of other BasedSequences

public class
SegmentedSequenceFull

A 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.

public class
SegmentedSequenceTree

A 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.

public class
SubSequence

A BasedSequence implementation which wraps original CharSequence to provide a BasedSequence for all its subsequences, a subSequence() returns a SubSequence from the original base sequence.

public class

Enum Summary

Modifier and TypeEnum and Description
public enum