| Modifier and Type | Method and Description |
|---|---|
static BasedSequence |
Utils.asBased(CharSequence sequence) |
| Modifier and Type | Field and Description |
|---|---|
static BasedSequence[] |
Node.EMPTY_SEGMENTS |
| Modifier and Type | Field and Description |
|---|---|
protected List<BasedSequence> |
ContentNode.lineSegments |
| Modifier and Type | Method and Description |
|---|---|
List<BasedSequence> |
Content.getContentLines() |
List<BasedSequence> |
ContentNode.getContentLines() |
List<BasedSequence> |
Content.getContentLines(int startLine,
int endLine) |
List<BasedSequence> |
ContentNode.getContentLines(int startLine,
int endLine) |
List<BasedSequence> |
BlockContent.getLines() |
| Modifier and Type | Method and Description |
|---|---|
void |
BlockContent.add(BasedSequence lineWithEOL,
int lineIndent) |
static void |
Node.delimitedSegmentSpan(StringBuilder out,
BasedSequence openingSequence,
BasedSequence sequence,
BasedSequence closingSequence,
String name) |
static void |
Node.delimitedSegmentSpanChars(StringBuilder out,
BasedSequence openingSequence,
BasedSequence sequence,
BasedSequence closingSequence,
String name) |
protected BasedSequence |
Node.deNullify(BasedSequence nullable) |
static BasedSequence |
Node.getLeadSegment(BasedSequence[] segments) |
static BasedSequence |
Node.getTrailSegment(BasedSequence[] segments) |
Node |
IParse.parse(BasedSequence input)
Parse the specified input text into a tree of nodes.
|
static void |
Node.segmentSpan(StringBuilder out,
BasedSequence sequence,
String name) |
static void |
Node.segmentSpanChars(StringBuilder out,
BasedSequence sequence,
String name) |
void |
Node.setChars(BasedSequence chars) |
void |
ContentNode.setContent(BasedSequence chars,
List<BasedSequence> lineSegments) |
void |
ContentNode.setContentLine(int lineIndex,
BasedSequence contentLine) |
static BasedSequence |
Node.spanningChars(BasedSequence... segments) |
static String |
Node.toSegmentSpan(BasedSequence sequence,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
BlockContent.addAll(List<BasedSequence> lines,
List<Integer> lineIndents) |
void |
ContentNode.setContent(BasedSequence chars,
List<BasedSequence> lineSegments) |
void |
ContentNode.setContent(List<BasedSequence> lineSegments) |
void |
ContentNode.setContentLines(List<BasedSequence> contentLines) |
| Constructor and Description |
|---|
BlankLine(BasedSequence chars) |
BlankLine(BasedSequence chars,
Block claimedBlankLine) |
Block(BasedSequence chars) |
Block(BasedSequence chars,
List<BasedSequence> lineSegments) |
ContentNode(BasedSequence chars) |
ContentNode(BasedSequence chars,
List<BasedSequence> lineSegments) |
Document(DataHolder options,
BasedSequence chars) |
Node(BasedSequence chars) |
| Constructor and Description |
|---|
Block(BasedSequence chars,
List<BasedSequence> lineSegments) |
Block(List<BasedSequence> lineSegments) |
ContentNode(BasedSequence chars,
List<BasedSequence> lineSegments) |
ContentNode(List<BasedSequence> lineSegments) |
| Modifier and Type | Field and Description |
|---|---|
BasedSequence |
TableCell.closeMarker |
BasedSequence |
TableCell.openMarker |
BasedSequence |
TableCell.text |
| Modifier and Type | Method and Description |
|---|---|
BasedSequence |
MarkdownTable.getCaption() |
| Modifier and Type | Method and Description |
|---|---|
List<BasedSequence> |
MarkdownWriterBase.getLinePrefixes(int startLine,
int endLine) |
| Modifier and Type | Method and Description |
|---|---|
static void |
MarkdownTable.appendFormattedCaption(LineFormattingAppendable out,
BasedSequence caption,
TableFormatOptions options) |
static String |
MarkdownTable.formattedCaption(BasedSequence caption,
TableFormatOptions options) |
| Modifier and Type | Method and Description |
|---|---|
static BasedSequence |
Escaping.collapseWhitespace(BasedSequence s,
ReplacedTextMapper textMapper) |
static BasedSequence |
Html5Entities.entityToSequence(BasedSequence input) |
static BasedSequence |
Escaping.escapeHtml(BasedSequence s,
boolean preserveEntities,
ReplacedTextMapper textMapper) |
default BasedSequence |
LineFormattingAppendable.getLinePrefix(int lineIndex)
Get Line content of given line
|
static BasedSequence |
Escaping.normalizeEndWithEOL(BasedSequence s,
ReplacedTextMapper textMapper)
Normalize eol: embedded \r and \r\n are converted to \n
|
static BasedSequence |
Escaping.normalizeEOL(BasedSequence s,
ReplacedTextMapper textMapper)
Normalize eol: embedded \r and \r\n are converted to \n
|
static BasedSequence |
Escaping.normalizeEOL(BasedSequence s,
ReplacedTextMapper textMapper,
boolean endWithEOL)
Normalize eol: embedded \r and \r\n are converted to \n
|
static BasedSequence |
Escaping.removeAll(BasedSequence s,
CharSequence remove,
ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
static BasedSequence |
Escaping.unescape(BasedSequence s,
ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
static BasedSequence |
Escaping.unescapeHtml(BasedSequence s,
ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
| Modifier and Type | Method and Description |
|---|---|
default List<BasedSequence> |
LineFormattingAppendable.getLinePrefixes()
Get Line prefixes
|
default List<BasedSequence> |
LineFormattingAppendable.getLinePrefixes(int startLine)
Get Line prefixes
|
List<BasedSequence> |
LineFormattingAppendable.getLinePrefixes(int startLine,
int endLine)
Get Line prefixes
|
List<BasedSequence> |
HtmlFormattingAppendableBase.getLinePrefixes(int startLine,
int endLine) |
List<BasedSequence> |
LineFormattingAppendableImpl.getLinePrefixes(int startOffset,
int endOffset) |
| Modifier and Type | Method and Description |
|---|---|
static BasedSequence |
Escaping.collapseWhitespace(BasedSequence s,
ReplacedTextMapper textMapper) |
static BasedSequence |
Html5Entities.entityToSequence(BasedSequence input) |
static BasedSequence |
Escaping.escapeHtml(BasedSequence s,
boolean preserveEntities,
ReplacedTextMapper textMapper) |
static BasedSequence |
Escaping.normalizeEndWithEOL(BasedSequence s,
ReplacedTextMapper textMapper)
Normalize eol: embedded \r and \r\n are converted to \n
|
static BasedSequence |
Escaping.normalizeEOL(BasedSequence s,
ReplacedTextMapper textMapper)
Normalize eol: embedded \r and \r\n are converted to \n
|
static BasedSequence |
Escaping.normalizeEOL(BasedSequence s,
ReplacedTextMapper textMapper,
boolean endWithEOL)
Normalize eol: embedded \r and \r\n are converted to \n
|
static BasedSequence |
Escaping.removeAll(BasedSequence s,
CharSequence remove,
ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
static BasedSequence |
Escaping.unescape(BasedSequence s,
ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
static BasedSequence |
Escaping.unescapeHtml(BasedSequence s,
ReplacedTextMapper textMapper)
Replace entities and backslash escapes with literal characters.
|
| Modifier and Type | Field and Description |
|---|---|
protected BasedSequence |
ParsedOption.mySource |
protected BasedSequence |
ParserMessage.source |
| Modifier and Type | Method and Description |
|---|---|
BasedSequence |
ParserMessage.getSource() |
BasedSequence |
ParsedOption.getSource() |
| Modifier and Type | Method and Description |
|---|---|
Pair<T,List<ParsedOption<T>>> |
OptionsParser.parseOption(BasedSequence optionsText,
T options,
MessageProvider provider) |
Pair<T,List<ParsedOption<T>>> |
OptionParser.parseOption(BasedSequence optionText,
T options,
MessageProvider provider) |
Pair<T,List<ParsedOption<T>>> |
BooleanOptionParser.parseOption(BasedSequence optionText,
T options,
MessageProvider provider) |
| Constructor and Description |
|---|
ParsedOption(BasedSequence source,
OptionParser<T> optionParser,
ParsedOptionStatus optionResult) |
ParsedOption(BasedSequence source,
OptionParser<T> optionParser,
ParsedOptionStatus optionResult,
List<ParserMessage> messages) |
ParsedOption(BasedSequence source,
OptionParser<T> optionParser,
ParsedOptionStatus optionResult,
List<ParserMessage> messages,
List<ParsedOption<T>> parsedOptions) |
ParsedOption(BasedSequence source,
OptionParser<T> optionParser,
ParsedOptionStatus optionResult,
ParserMessage message) |
ParserMessage(BasedSequence source,
ParsedOptionStatus status,
String message) |
| Modifier and Type | Class and Description |
|---|---|
static class |
BasedSequence.EmptyBasedSequence |
class |
BasedSequenceImpl
A CharSequence that references original char sequence and maps '\0' to '�'
a subSequence() returns a sub-sequence from the original base sequence
|
class |
CharSubSequence
A CharSequence that references original char[] and maps '\0' to '�'
a subSequence() returns a sub-sequence from the original base sequence
|
class |
MappedSequence
A CharSequence that maps characters according to CharMapper
|
class |
PrefixedSubSequence
A CharSequence that references original char sequence, maps '\0' to '�' and is prefixed with a fixed string
a subSequence() returns a sub-sequence from the original base sequence, possibly with a prefix if it falls in range
|
class |
SegmentedSequence
A CharSequence that references original char sequence and maps '\0' to '�'
a subSequence() returns a sub-sequence from the original base sequence
|
class |
SubSequence
A CharSequence that references original char sequence and maps '\0' to '�'
a subSequence() returns a sub-sequence from the original base sequence
|
| Modifier and Type | Field and Description |
|---|---|
static BasedSequence |
BasedSequence.EMPTY |
static BasedSequence[] |
BasedSequence.EMPTY_ARRAY |
static BasedSequence[] |
BasedSequence.EMPTY_SEGMENTS |
static BasedSequence |
BasedSequence.EOL |
static BasedSequence |
BasedSequence.NULL |
static BasedSequence |
BasedSequence.SPACE |
| Modifier and Type | Field and Description |
|---|---|
static List<BasedSequence> |
BasedSequence.EMPTY_LIST |
| Modifier and Type | Method and Description |
|---|---|
BasedSequence |
BasedSequence.baseSubSequence(int start)
Get a portion of the original sequence that this sequence is based on
|
BasedSequence |
BasedSequenceImpl.baseSubSequence(int start) |
BasedSequence |
PrefixedSubSequence.baseSubSequence(int start,
int end) |
BasedSequence |
MappedSequence.baseSubSequence(int start,
int end) |
BasedSequence |
BasedSequence.baseSubSequence(int start,
int end)
Get a portion of the original sequence that this sequence is based on
|
BasedSequence |
BasedSequence.EmptyBasedSequence.baseSubSequence(int start,
int end) |
BasedSequence |
SegmentedSequence.baseSubSequence(int start,
int end) |
BasedSequence[] |
BasedSequenceImpl.emptyArray() |
default BasedSequence |
BasedSequence.extendByAny(CharSequence charSet) |
BasedSequence |
BasedSequence.extendByAny(CharSequence charSet,
int maxCount)
Extend this based sequence to include characters from underlying based sequence
|
BasedSequence |
BasedSequenceImpl.extendByAny(CharSequence charSet,
int maxCount) |
default BasedSequence |
BasedSequence.extendByOneOfAny(CharSequence charSet) |
default BasedSequence |
BasedSequence.extendToAny(CharSequence charSet) |
BasedSequence |
BasedSequence.extendToAny(CharSequence charSet,
int maxCount)
Extend this based sequence to include up to the next character from underlying based sequence
|
BasedSequence |
BasedSequenceImpl.extendToAny(CharSequence charSet,
int maxCount) |
static BasedSequence |
BasedSequenceImpl.firstNonNull(BasedSequence... sequences) |
BasedSequence |
BasedSequence.EmptyBasedSequence.getBase() |
BasedSequence |
PrefixedSubSequence.getBaseSequence() |
BasedSequence |
MappedSequence.getBaseSequence() |
BasedSequence |
BasedSequence.getBaseSequence()
Get the base sequence for the text
|
BasedSequence |
BasedSequence.EmptyBasedSequence.getBaseSequence() |
BasedSequence |
SegmentedSequence.getBaseSequence() |
BasedSequence |
BasedSequence.getEmptyPrefix()
Get empty prefix to this sequence
|
BasedSequence |
BasedSequenceImpl.getEmptyPrefix() |
BasedSequence |
BasedSequence.getEmptySuffix()
Get empty suffix to this sequence
|
BasedSequence |
BasedSequenceImpl.getEmptySuffix() |
BasedSequence |
ReplacedTextMapper.getReplacedSequence() |
BasedSequence |
BasedSequence.intersect(BasedSequence other)
start/end offset based intersection, not textual
|
BasedSequence |
BasedSequenceImpl.intersect(BasedSequence other) |
BasedSequence |
BasedSequence.normalizeEndWithEOL(ReplacedTextMapper textMapper)
replace any \r\n and \r by \n, append terminating EOL if one is not present
|
BasedSequence |
BasedSequenceImpl.normalizeEndWithEOL(ReplacedTextMapper textMapper) |
BasedSequence |
BasedSequence.normalizeEOL(ReplacedTextMapper textMapper)
replace any \r\n and \r by \n
|
BasedSequence |
BasedSequenceImpl.normalizeEOL(ReplacedTextMapper textMapper) |
BasedSequence |
BasedSequenceImpl.nullSequence() |
static BasedSequence |
SegmentedSequence.of(BasedSequence... segments) |
static BasedSequence |
BasedSequenceImpl.of(CharSequence charSequence) |
static BasedSequence |
SubSequence.of(CharSequence charSequence) |
static BasedSequence |
BasedSequenceImpl.of(CharSequence charSequence,
int start) |
static BasedSequence |
SubSequence.of(CharSequence charSequence,
int start) |
static BasedSequence |
BasedSequenceImpl.of(CharSequence charSequence,
int start,
int end) |
static BasedSequence |
SubSequence.of(CharSequence charSequence,
int start,
int end) |
static BasedSequence |
SegmentedSequence.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 |
BasedSequence.prefixOf(BasedSequence other)
Get the prefix part of this from other, start/end offset based containment, not textual
|
BasedSequence |
BasedSequenceImpl.prefixOf(BasedSequence other) |
default BasedSequence |
BasedSequence.prefixWithIndent() |
BasedSequence |
BasedSequence.prefixWithIndent(int maxColumns)
Extend this based sequence to include characters from underlying based sequence
taking tab expansion to 4th spaces into account
|
BasedSequence |
BasedSequenceImpl.prefixWithIndent(int maxColumns) |
BasedSequence |
Range.safeSubSequence(CharSequence charSequence) |
BasedSequence |
BasedSequenceImpl.sequenceOf(CharSequence charSequence,
int startIndex,
int endIndex) |
BasedSequence |
BasedSequence.spliceAtEnd(BasedSequence other)
Splice the given sequence to the end of this one and return a BasedSequence of the result.
|
BasedSequence |
BasedSequenceImpl.spliceAtEnd(BasedSequence other) |
BasedSequence |
Range.subSequence(CharSequence charSequence) |
BasedSequence |
PrefixedSubSequence.subSequence(int start,
int end) |
BasedSequence |
MappedSequence.subSequence(int start,
int end) |
BasedSequence |
BasedSequence.EmptyBasedSequence.subSequence(int i,
int i1) |
BasedSequence |
SegmentedSequence.subSequence(int start,
int end) |
BasedSequence |
BasedSequence.suffixOf(BasedSequence other)
Get the suffix part of this from other, start/end offset based containment, not textual
|
BasedSequence |
BasedSequenceImpl.suffixOf(BasedSequence other) |
BasedSequence |
SegmentedSequenceBuilder.toBasedSequence() |
BasedSequence |
BasedSequenceImpl.toMapped(CharMapper mapper) |
BasedSequence[] |
SegmentedSequenceBuilder.toSegments() |
BasedSequence |
BasedSequence.unescape(ReplacedTextMapper textMapper)
Get the unescaped string of this sequence content
|
BasedSequence |
BasedSequenceImpl.unescape(ReplacedTextMapper textMapper) |
| Modifier and Type | Method and Description |
|---|---|
ArrayList<BasedSequence> |
ReplacedTextMapper.getReplacedSegments() |
| Modifier and Type | Method and Description |
|---|---|
void |
ReplacedTextMapper.addReplacedText(int startIndex,
int endIndex,
BasedSequence replacedSequence) |
SegmentedSequenceBuilder |
SegmentedSequenceBuilder.append(BasedSequence s) |
boolean |
BasedSequence.containsAllOf(BasedSequence other)
start/end offset based containment, not textual
|
boolean |
BasedSequenceImpl.containsAllOf(BasedSequence other) |
boolean |
BasedSequence.containsSomeOf(BasedSequence other)
start/end offset based containment, not textual
|
boolean |
BasedSequenceImpl.containsSomeOf(BasedSequence other) |
static BasedSequence |
BasedSequenceImpl.firstNonNull(BasedSequence... sequences) |
BasedSequence |
BasedSequence.intersect(BasedSequence other)
start/end offset based intersection, not textual
|
BasedSequence |
BasedSequenceImpl.intersect(BasedSequence other) |
boolean |
BasedSequence.isContinuationOf(BasedSequence other)
Test if this sequence is a continuation of the given sequence in original source text
|
boolean |
BasedSequenceImpl.isContinuationOf(BasedSequence other) |
boolean |
BasedSequence.isContinuedBy(BasedSequence other)
Test if the given sequence is a continuation of this sequence in original source text
|
boolean |
BasedSequenceImpl.isContinuedBy(BasedSequence other) |
static BasedSequence |
SegmentedSequence.of(BasedSequence... segments) |
static PrefixedSubSequence |
PrefixedSubSequence.of(String prefix,
BasedSequence baseSeq) |
static PrefixedSubSequence |
PrefixedSubSequence.of(String prefix,
BasedSequence baseSeq,
int start) |
static PrefixedSubSequence |
PrefixedSubSequence.of(String prefix,
BasedSequence baseSeq,
int start,
int end) |
BasedSequence |
BasedSequence.prefixOf(BasedSequence other)
Get the prefix part of this from other, start/end offset based containment, not textual
|
BasedSequence |
BasedSequenceImpl.prefixOf(BasedSequence other) |
static PrefixedSubSequence |
PrefixedSubSequence.repeatOf(char prefix,
int count,
BasedSequence baseSeq) |
static PrefixedSubSequence |
PrefixedSubSequence.repeatOf(CharSequence prefix,
int count,
BasedSequence baseSeq) |
BasedSequence |
BasedSequence.spliceAtEnd(BasedSequence other)
Splice the given sequence to the end of this one and return a BasedSequence of the result.
|
BasedSequence |
BasedSequenceImpl.spliceAtEnd(BasedSequence other) |
void |
ReplacedTextMapper.startNestedReplacement(BasedSequence sequence) |
BasedSequence |
BasedSequence.suffixOf(BasedSequence other)
Get the suffix part of this from other, start/end offset based containment, not textual
|
BasedSequence |
BasedSequenceImpl.suffixOf(BasedSequence other) |
| Modifier and Type | Method and Description |
|---|---|
static BasedSequence |
SegmentedSequence.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.
|
| Constructor and Description |
|---|
ReplacedTextMapper(BasedSequence original) |
SegmentedSequenceBuilder(BasedSequence base) |
SegmentedSequenceBuilder(BasedSequence base,
int initialCapacity) |
Copyright © 2019. All rights reserved.