public class HtmlAppendableBase<T extends HtmlAppendableBase<T>> extends Object implements HtmlAppendable
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 |
|---|
HtmlAppendableBase(@Nullable Appendable other,
int indentSize,
int formatOptions) |
HtmlAppendableBase(int indentSize,
int formatOptions) |
HtmlAppendableBase(com.vladsch.flexmark.util.sequence.LineAppendable other,
boolean inheritIndent) |
| 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 |
attr(Attribute... attribute) |
T |
attr(@NotNull Attributes attributes) |
T |
attr(@NotNull CharSequence attrName,
@NotNull CharSequence value) |
T |
blankLine() |
T |
blankLine(int count) |
T |
blankLineIf(boolean predicate) |
T |
changeOptions(int addFlags,
int removeFlags) |
T |
closePre() |
T |
closePreFormatted() |
T |
closeTag(@NotNull CharSequence tagName) |
int |
column() |
boolean |
endsWithEOL() |
int |
getAfterEolPrefixDelta() |
Attributes |
getAttributes() |
@NotNull com.vladsch.flexmark.util.sequence.BasedSequence |
getBeforeEolPrefix() |
@NotNull com.vladsch.flexmark.util.sequence.builder.ISequenceBuilder<?,?> |
getBuilder() |
@NotNull HtmlAppendable |
getEmptyAppendable() |
@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) |
@NotNull Stack<String> |
getOpenTags() |
@NotNull List<String> |
getOpenTagsAfterLast(@NotNull CharSequence latestTag) |
protected String |
getOpenTagText() |
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() |
boolean |
inPre() |
void |
insertLine(int lineIndex,
@NotNull CharSequence prefix,
@NotNull CharSequence text) |
boolean |
isPendingSpace() |
boolean |
isPreFormatted() |
boolean |
isSuppressCloseTagLine() |
boolean |
isSuppressOpenTagLine() |
@NotNull Iterator<com.vladsch.flexmark.util.sequence.LineInfo> |
iterator() |
T |
line() |
T |
lineIf(boolean predicate) |
T |
lineOnFirstText(boolean value) |
T |
lineWithTrailingSpaces(int count) |
int |
offset() |
int |
offsetWithPending() |
T |
openPre() |
T |
openPreFormatted(boolean keepIndent) |
T |
popOptions() |
T |
popPrefix() |
T |
popPrefix(boolean afterEol) |
protected void |
popTag(CharSequence tagName) |
T |
pushOptions() |
T |
pushPrefix() |
protected void |
pushTag(CharSequence tagName) |
T |
raw(@NotNull CharSequence s) |
T |
raw(@NotNull CharSequence s,
int count) |
T |
rawIndentedPre(@NotNull CharSequence s) |
T |
rawPre(@NotNull CharSequence s) |
T |
removeExtraBlankLines(int maxBlankLines,
int maxTrailingBlankLines,
int startLine,
int endLine) |
T |
removeIndentOnFirstEOL(@NotNull Runnable listener) |
T |
removeLines(int startLine,
int endLine) |
T |
setAttributes(@NotNull Attributes attributes) |
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 |
setSuppressCloseTagLine(boolean suppressCloseTagLine) |
void |
setSuppressOpenTagLine(boolean suppressOpenTagLine) |
T |
tag(@NotNull CharSequence tagName) |
T |
tag(@NotNull CharSequence tagName,
boolean voidElement) |
T |
tag(@NotNull CharSequence tagName,
boolean withIndent,
boolean withLine,
@NotNull Runnable runnable) |
T |
tag(@NotNull CharSequence tagName,
@NotNull Runnable runnable) |
protected void |
tagClosed(CharSequence tagName) |
T |
tagIndent(@NotNull CharSequence tagName,
@NotNull Runnable runnable) |
T |
tagLine(@NotNull CharSequence tagName) |
T |
tagLine(@NotNull CharSequence tagName,
boolean voidElement) |
T |
tagLine(@NotNull CharSequence tagName,
@NotNull Runnable runnable) |
T |
tagLineIndent(@NotNull CharSequence tagName,
@NotNull Runnable runnable) |
protected void |
tagOpened(CharSequence tagName) |
T |
tagVoid(@NotNull CharSequence tagName) |
T |
tagVoidLine(@NotNull CharSequence tagName) |
T |
text(@NotNull CharSequence s) |
@NotNull CharSequence |
toSequence(int maxBlankLines,
int maxTrailingBlankLines,
boolean withPrefixes) |
@NotNull String |
toString() |
@NotNull String |
toString(int maxBlankLines,
int maxTrailingBlankLines,
boolean withPrefixes) |
T |
unIndent() |
T |
unIndentNoEol() |
T |
withAttr() |
T |
withCondIndent() |
T |
withCondLineOnChildText() |
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, 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, spliteratorpublic HtmlAppendableBase(com.vladsch.flexmark.util.sequence.LineAppendable other,
boolean inheritIndent)
public HtmlAppendableBase(int indentSize,
int formatOptions)
public HtmlAppendableBase(@Nullable
@Nullable Appendable other,
int indentSize,
int formatOptions)
@NotNull public @NotNull HtmlAppendable getEmptyAppendable()
getEmptyAppendable in interface com.vladsch.flexmark.util.sequence.LineAppendablepublic boolean isSuppressOpenTagLine()
public void setSuppressOpenTagLine(boolean suppressOpenTagLine)
public boolean isSuppressCloseTagLine()
@NotNull public T setSuppressCloseTagLine(boolean suppressCloseTagLine)
@NotNull public T openPre()
openPre in interface HtmlAppendable@NotNull public T closePre()
closePre in interface HtmlAppendablepublic boolean inPre()
inPre in interface HtmlAppendable@NotNull public T raw(@NotNull @NotNull CharSequence s)
raw in interface HtmlAppendable@NotNull public T raw(@NotNull @NotNull CharSequence s, int count)
raw in interface HtmlAppendable@NotNull public T rawPre(@NotNull @NotNull CharSequence s)
rawPre in interface HtmlAppendable@NotNull public T rawIndentedPre(@NotNull @NotNull CharSequence s)
rawIndentedPre in interface HtmlAppendable@NotNull public T text(@NotNull @NotNull CharSequence s)
text in interface HtmlAppendable@NotNull public T attr(@NotNull @NotNull CharSequence attrName, @NotNull @NotNull CharSequence value)
attr in interface HtmlAppendable@NotNull public T attr(@NotNull Attribute... attribute)
attr in interface HtmlAppendable@NotNull public T attr(@NotNull @NotNull Attributes attributes)
attr in interface HtmlAppendable@NotNull public T withAttr()
withAttr in interface HtmlAppendablepublic Attributes getAttributes()
getAttributes in interface HtmlAppendable@NotNull public T setAttributes(@NotNull @NotNull Attributes attributes)
setAttributes in interface HtmlAppendable@NotNull public T withCondLineOnChildText()
withCondLineOnChildText in interface HtmlAppendable@NotNull public T withCondIndent()
withCondIndent in interface HtmlAppendable@NotNull public T tag(@NotNull @NotNull CharSequence tagName)
tag in interface HtmlAppendable@NotNull public T tag(@NotNull @NotNull CharSequence tagName, @NotNull @NotNull Runnable runnable)
tag in interface HtmlAppendable@NotNull public T tagVoid(@NotNull @NotNull CharSequence tagName)
tagVoid in interface HtmlAppendableprotected String getOpenTagText()
protected void pushTag(CharSequence tagName)
protected void popTag(CharSequence tagName)
protected void tagOpened(CharSequence tagName)
protected void tagClosed(CharSequence tagName)
@NotNull public @NotNull Stack<String> getOpenTags()
getOpenTags in interface HtmlAppendable@NotNull public @NotNull List<String> getOpenTagsAfterLast(@NotNull @NotNull CharSequence latestTag)
getOpenTagsAfterLast in interface HtmlAppendable@NotNull public T tag(@NotNull @NotNull CharSequence tagName, boolean voidElement)
tag in interface HtmlAppendable@NotNull public T closeTag(@NotNull @NotNull CharSequence tagName)
closeTag in interface HtmlAppendable@NotNull public T tag(@NotNull @NotNull CharSequence tagName, boolean withIndent, boolean withLine, @NotNull @NotNull Runnable runnable)
tag in interface HtmlAppendable@NotNull public T tagVoidLine(@NotNull @NotNull CharSequence tagName)
tagVoidLine in interface HtmlAppendable@NotNull public T tagLine(@NotNull @NotNull CharSequence tagName)
tagLine in interface HtmlAppendable@NotNull public T tagLine(@NotNull @NotNull CharSequence tagName, boolean voidElement)
tagLine in interface HtmlAppendable@NotNull public T tagLine(@NotNull @NotNull CharSequence tagName, @NotNull @NotNull Runnable runnable)
tagLine in interface HtmlAppendable@NotNull public T tagIndent(@NotNull @NotNull CharSequence tagName, @NotNull @NotNull Runnable runnable)
tagIndent in interface HtmlAppendable@NotNull public T tagLineIndent(@NotNull @NotNull CharSequence tagName, @NotNull @NotNull Runnable runnable)
tagLineIndent in interface HtmlAppendable@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.