public abstract class MarkdownWriterBase<T extends MarkdownWriterBase<T,N,C>,N,C extends NodeContext<N,C>> extends Object implements com.vladsch.flexmark.util.sequence.LineAppendable
| Modifier and Type | Field and Description |
|---|---|
protected com.vladsch.flexmark.util.sequence.LineAppendableImpl |
appendable |
protected C |
context |
ALLOW_LEADING_EOL, ALLOW_LEADING_WHITESPACE, COLLAPSE_WHITESPACE, CONVERT_TABS, F_COLLAPSE_WHITESPACE, F_CONVERT_TABS, F_FORMAT_ALL, F_PASS_THROUGH, F_PREFIX_PRE_FORMATTED, F_TRIM_LEADING_EOL, F_TRIM_LEADING_WHITESPACE, F_TRIM_TRAILING_WHITESPACE, F_WHITESPACE_REMOVAL, FORMAT_ALL, O_COLLAPSE_WHITESPACE, O_CONVERT_TABS, O_FORMAT_ALL, O_PASS_THROUGH, O_PREFIX_PRE_FORMATTED, O_TRIM_LEADING_EOL, O_TRIM_LEADING_WHITESPACE, O_TRIM_TRAILING_WHITESPACE, PASS_THROUGH, PREFIX_PRE_FORMATTED, TRIM_LEADING_WHITESPACE, TRIM_TRAILING_WHITESPACE| Constructor and Description |
|---|
MarkdownWriterBase() |
MarkdownWriterBase(@Nullable Appendable builder,
int formatOptions) |
MarkdownWriterBase(int formatOptions) |
| Modifier and Type | Method and Description |
|---|---|
T |
addIndentOnFirstEOL(@NotNull Runnable listener) |
T |
addPrefix(@NotNull CharSequence prefix) |
T |
addPrefix(@NotNull CharSequence prefix,
boolean afterEol) |
T |
append(char c) |
T |
append(char c,
int count) |
T |
append(@NotNull CharSequence csq) |
T |
append(@NotNull CharSequence csq,
int start,
int end) |
T |
append(@NotNull com.vladsch.flexmark.util.sequence.LineAppendable lines,
int startLine,
int endLine,
boolean withPrefixes) |
<T extends Appendable> |
appendTo(T out,
boolean withPrefixes,
int maxBlankLines,
int maxTrailingBlankLines,
int startLine,
int endLine) |
T |
blankLine() |
T |
blankLine(int count) |
T |
blankLineIf(boolean predicate) |
T |
changeOptions(int addFlags,
int removeFlags) |
T |
closePreFormatted() |
int |
column() |
boolean |
endsWithEOL() |
int |
getAfterEolPrefixDelta() |
@NotNull com.vladsch.flexmark.util.sequence.BasedSequence |
getBeforeEolPrefix() |
@NotNull com.vladsch.flexmark.util.sequence.builder.ISequenceBuilder<?,?> |
getBuilder() |
C |
getContext() |
@NotNull com.vladsch.flexmark.util.sequence.BasedSequence |
getIndentPrefix() |
@NotNull com.vladsch.flexmark.util.sequence.BasedSequence |
getLine(int lineIndex) |
int |
getLineCount() |
int |
getLineCountWithPending() |
@NotNull com.vladsch.flexmark.util.sequence.LineInfo |
getLineInfo(int lineIndex) |
@NotNull Iterable<com.vladsch.flexmark.util.sequence.BasedSequence> |
getLines(int maxTrailingBlankLines,
int startLine,
int endLine,
boolean withPrefixes) |
@NotNull Iterable<com.vladsch.flexmark.util.sequence.LineInfo> |
getLinesInfo(int maxTrailingBlankLines,
int startLine,
int endLine) |
int |
getOptions() |
@NotNull com.vladsch.flexmark.util.misc.BitFieldSet<com.vladsch.flexmark.util.sequence.LineAppendable.Options> |
getOptionSet() |
int |
getPendingEOL() |
int |
getPendingSpace() |
@NotNull com.vladsch.flexmark.util.sequence.BasedSequence |
getPrefix() |
int |
getTrailingBlankLines(int endLine) |
T |
indent() |
void |
insertLine(int lineIndex,
@NotNull CharSequence prefix,
@NotNull CharSequence text) |
boolean |
isPendingSpace() |
boolean |
isPreFormatted() |
@NotNull Iterator<com.vladsch.flexmark.util.sequence.LineInfo> |
iterator() |
abstract @NotNull com.vladsch.flexmark.util.sequence.BasedSequence |
lastBlockQuoteChildPrefix(com.vladsch.flexmark.util.sequence.BasedSequence prefix) |
T |
line() |
T |
lineIf(boolean predicate) |
T |
lineOnFirstText(boolean value) |
T |
lineWithTrailingSpaces(int count) |
int |
offset() |
int |
offsetWithPending() |
T |
openPreFormatted(boolean keepIndent) |
T |
popOptions() |
T |
popPrefix() |
T |
popPrefix(boolean afterEol) |
T |
pushOptions() |
T |
pushPrefix() |
T |
removeExtraBlankLines(int maxBlankLines,
int maxTrailingBlankLines,
int startLine,
int endLine) |
T |
removeIndentOnFirstEOL(@NotNull Runnable listener) |
T |
removeLines(int startLine,
int endLine) |
void |
setContext(C context) |
T |
setIndentPrefix(@Nullable CharSequence prefix) |
void |
setLine(int lineIndex,
@NotNull CharSequence prefix,
@NotNull CharSequence text) |
T |
setOptions(int flags) |
T |
setPrefix(@NotNull CharSequence prefix) |
T |
setPrefix(@Nullable CharSequence prefix,
boolean afterEol) |
void |
setPrefixLength(int lineIndex,
int prefixEndIndex) |
T |
tailBlankLine() |
T |
tailBlankLine(int count) |
@NotNull CharSequence |
toSequence(int maxBlankLines,
int maxTrailingBlankLines,
boolean withPrefixes) |
String |
toString() |
@NotNull String |
toString(int maxBlankLines,
int maxTrailingBlankLines,
boolean withPrefixes) |
T |
unIndent() |
T |
unIndentNoEol() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddOptions, append, append, appendAll, appendTo, appendTo, appendTo, appendTo, appendToSilently, appendToSilently, appendToSilently, appendToSilently, clearLineOnFirstText, combinedPrefix, copyAppendable, copyAppendable, copyAppendable, copyAppendable, copyAppendable, get, getEmptyAppendable, getLineContent, getLinePrefix, getLines, getLines, getLines, getLines, getLinesInfo, getLinesInfo, getTrailingBlankLines, isEmpty, isNotEmpty, noPreserveSpaces, noTrimLeading, preserveSpaces, removeExtraBlankLines, removeOptions, setLineOnFirstText, setOptions, setOptions, toOptionSet, toOptionSet, toSequence, toSequence, toSequence, toSequence, toString, toString, toString, toString, trimLeadingforEach, spliteratorprotected final com.vladsch.flexmark.util.sequence.LineAppendableImpl appendable
protected C extends NodeContext<N,C> context
public MarkdownWriterBase()
public MarkdownWriterBase(int formatOptions)
public MarkdownWriterBase(@Nullable
@Nullable Appendable builder,
int formatOptions)
public void setContext(C context)
public C getContext()
@NotNull public T tailBlankLine()
@NotNull public abstract @NotNull com.vladsch.flexmark.util.sequence.BasedSequence lastBlockQuoteChildPrefix(com.vladsch.flexmark.util.sequence.BasedSequence prefix)
@NotNull public T tailBlankLine(int count)
@NotNull public @NotNull Iterator<com.vladsch.flexmark.util.sequence.LineInfo> iterator()
@NotNull public @NotNull Iterable<com.vladsch.flexmark.util.sequence.BasedSequence> getLines(int maxTrailingBlankLines, int startLine, int endLine, boolean withPrefixes)
getLines in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public @NotNull Iterable<com.vladsch.flexmark.util.sequence.LineInfo> getLinesInfo(int maxTrailingBlankLines, int startLine, int endLine)
getLinesInfo in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic void setPrefixLength(int lineIndex,
int prefixEndIndex)
setPrefixLength in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic void insertLine(int lineIndex,
@NotNull
@NotNull CharSequence prefix,
@NotNull
@NotNull CharSequence text)
insertLine in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic void setLine(int lineIndex,
@NotNull
@NotNull CharSequence prefix,
@NotNull
@NotNull CharSequence text)
setLine in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic <T extends Appendable> T appendTo(@NotNull T out, boolean withPrefixes, int maxBlankLines, int maxTrailingBlankLines, int startLine, int endLine) throws IOException
appendTo in interface com.vladsch.flexmark.util.sequence.LineAppendableIOExceptionpublic boolean endsWithEOL()
endsWithEOL in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic boolean isPendingSpace()
isPendingSpace in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic boolean isPreFormatted()
isPreFormatted in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic int getTrailingBlankLines(int endLine)
getTrailingBlankLines in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic int column()
column in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic int getLineCount()
getLineCount in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic int getLineCountWithPending()
getLineCountWithPending in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic int getOptions()
getOptions in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic int getPendingSpace()
getPendingSpace in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic int getPendingEOL()
getPendingEOL in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic int offset()
offset in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic int offsetWithPending()
offsetWithPending in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic int getAfterEolPrefixDelta()
getAfterEolPrefixDelta in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public @NotNull com.vladsch.flexmark.util.sequence.builder.ISequenceBuilder<?,?> getBuilder()
getBuilder in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getPrefix()
getPrefix in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getBeforeEolPrefix()
getBeforeEolPrefix in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public @NotNull com.vladsch.flexmark.util.sequence.LineInfo getLineInfo(int lineIndex)
getLineInfo in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getLine(int lineIndex)
getLine in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getIndentPrefix()
getIndentPrefix in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public @NotNull CharSequence toSequence(int maxBlankLines, int maxTrailingBlankLines, boolean withPrefixes)
toSequence in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public @NotNull String toString(int maxBlankLines, int maxTrailingBlankLines, boolean withPrefixes)
toString in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public @NotNull com.vladsch.flexmark.util.misc.BitFieldSet<com.vladsch.flexmark.util.sequence.LineAppendable.Options> getOptionSet()
getOptionSet in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T removeExtraBlankLines(int maxBlankLines, int maxTrailingBlankLines, int startLine, int endLine)
removeExtraBlankLines in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T removeLines(int startLine, int endLine)
removeLines in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T pushOptions()
pushOptions in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T popOptions()
popOptions in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T changeOptions(int addFlags, int removeFlags)
changeOptions in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T addIndentOnFirstEOL(@NotNull @NotNull Runnable listener)
addIndentOnFirstEOL in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T addPrefix(@NotNull @NotNull CharSequence prefix)
addPrefix in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T addPrefix(@NotNull @NotNull CharSequence prefix, boolean afterEol)
addPrefix in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T append(char c)
append in interface com.vladsch.flexmark.util.sequence.LineAppendableappend in interface Appendable@NotNull public T append(@NotNull @NotNull CharSequence csq)
append in interface com.vladsch.flexmark.util.sequence.LineAppendableappend in interface Appendable@NotNull public T append(@NotNull @NotNull CharSequence csq, int start, int end)
append in interface com.vladsch.flexmark.util.sequence.LineAppendableappend in interface Appendable@NotNull public T append(@NotNull @NotNull com.vladsch.flexmark.util.sequence.LineAppendable lines, int startLine, int endLine, boolean withPrefixes)
append in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T blankLine()
blankLine in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T blankLine(int count)
blankLine in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T blankLineIf(boolean predicate)
blankLineIf in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T closePreFormatted()
closePreFormatted in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T indent()
indent in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T line()
line in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T lineIf(boolean predicate)
lineIf in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T lineOnFirstText(boolean value)
lineOnFirstText in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T lineWithTrailingSpaces(int count)
lineWithTrailingSpaces in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T openPreFormatted(boolean keepIndent)
openPreFormatted in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T popPrefix()
popPrefix in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T popPrefix(boolean afterEol)
popPrefix in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T pushPrefix()
pushPrefix in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T removeIndentOnFirstEOL(@NotNull @NotNull Runnable listener)
removeIndentOnFirstEOL in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T append(char c, int count)
append in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T setIndentPrefix(@Nullable @Nullable CharSequence prefix)
setIndentPrefix in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T setOptions(int flags)
setOptions in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T setPrefix(@NotNull @NotNull CharSequence prefix)
setPrefix in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T setPrefix(@Nullable @Nullable CharSequence prefix, boolean afterEol)
setPrefix in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T unIndent()
unIndent in interface com.vladsch.flexmark.util.sequence.LineAppendable@NotNull public T unIndentNoEol()
unIndentNoEol in interface com.vladsch.flexmark.util.sequence.LineAppendableCopyright © 2020. All rights reserved.