Interface Decorator
- All Known Implementing Classes:
DefaultDecorator
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when a blockquote is closed.voidCalled when a code block is closed.voidCalled when a code span is closed.voidCalled when an emphasis span is closed.voidcloseHeadline(StringBuilder out, int level) Called when a headline is closed.voidcloseImage(StringBuilder out) Called when an image is closed.voidcloseLink(StringBuilder out) Called when a link is closedvoidCalled when a list item is closed.voidCalled when an ordered list is closed.voidCalled when a paragraph is closed.voidcloseStrong(StringBuilder out) Called when a strong span is closed.voidcloseSuper(StringBuilder out) Called when a superscript span is closed.voidCalled when an unordered list is closed.voidCalled when a horizontal ruler is encountered.voidCalled when a blockquote is opened.voidCalled when a code block is opened.voidCalled when a code span is opened.voidCalled when an emphasis span is opened.voidopenHeadline(StringBuilder out, int level) Called when a headline is opened.voidopenImage(StringBuilder out) Called when an image is opened.voidopenLink(StringBuilder out) Called when a link is opened.voidCalled when a list item is opened.voidCalled when an ordered list is opened.voidCalled when a paragraph is opened.voidopenStrong(StringBuilder out) Called when a strong span is opened.voidopenSuper(StringBuilder out) Called when a superscript span is opened.voidCalled when an unordered list is opened.
-
Method Details
-
openParagraph
Called when a paragraph is opened.Default implementation is:
out.append("<p>");- Parameters:
out- The StringBuilder to write to.
-
closeParagraph
Called when a paragraph is closed.Default implementation is:
out.append("</p>\n");- Parameters:
out- The StringBuilder to write to.
-
openBlockquote
Called when a blockquote is opened. Default implementation is:out.append("<blockquote>");- Parameters:
out- The StringBuilder to write to.
-
closeBlockquote
Called when a blockquote is closed.Default implementation is:
out.append("</blockquote>\n");- Parameters:
out- The StringBuilder to write to.
-
openCodeBlock
Called when a code block is opened.Default implementation is:
out.append("<pre><code>");- Parameters:
out- The StringBuilder to write to.
-
closeCodeBlock
Called when a code block is closed.Default implementation is:
out.append("</code></pre>\n");- Parameters:
out- The StringBuilder to write to.
-
openCodeSpan
Called when a code span is opened.Default implementation is:
out.append("<code>");- Parameters:
out- The StringBuilder to write to.
-
closeCodeSpan
Called when a code span is closed.Default implementation is:
out.append("</code>");- Parameters:
out- The StringBuilder to write to.
-
openHeadline
Called when a headline is opened.Note: Don't close the HTML tag!
Default implementation is:
out.append("<h"); out.append(level);- Parameters:
out- The StringBuilder to write to.level- The level to use.
-
closeHeadline
Called when a headline is closed.Default implementation is:
out.append("</h"); out.append(level); out.append(">\n");- Parameters:
out- The StringBuilder to write to.level- The level to use.
-
openStrong
Called when a strong span is opened.Default implementation is:
out.append("<strong>");- Parameters:
out- The StringBuilder to write to.
-
closeStrong
Called when a strong span is closed.Default implementation is:
out.append("</strong>");- Parameters:
out- The StringBuilder to write to.
-
openEmphasis
Called when an emphasis span is opened.Default implementation is:
out.append("<em>");- Parameters:
out- The StringBuilder to write to.
-
closeEmphasis
Called when an emphasis span is closed.Default implementation is:
out.append("</em>");- Parameters:
out- The StringBuilder to write to.
-
openSuper
Called when a superscript span is opened.Default implementation is:
out.append("<sup>");- Parameters:
out- The StringBuilder to write to.
-
closeSuper
Called when a superscript span is closed.Default implementation is:
out.append("</sup>");- Parameters:
out- The StringBuilder to write to.
-
openOrderedList
Called when an ordered list is opened.Default implementation is:
out.append("<ol>\n");- Parameters:
out- The StringBuilder to write to.
-
closeOrderedList
Called when an ordered list is closed.Default implementation is:
out.append("</ol>\n");- Parameters:
out- The StringBuilder to write to.
-
openUnorderedList
Called when an unordered list is opened.Default implementation is:
out.append("<ul>\n");- Parameters:
out- The StringBuilder to write to.
-
closeUnorderedList
Called when an unordered list is closed.Default implementation is:
out.append("</ul>\n");- Parameters:
out- The StringBuilder to write to.
-
openListItem
Called when a list item is opened.Note: Don't close the HTML tag!
Default implementation is:
out.append("<li");- Parameters:
out- The StringBuilder to write to.
-
closeListItem
Called when a list item is closed.Default implementation is:
out.append("</li>\n");- Parameters:
out- The StringBuilder to write to.
-
horizontalRuler
Called when a horizontal ruler is encountered.Default implementation is:
out.append("<hr />\n");- Parameters:
out- The StringBuilder to write to.
-
openLink
Called when a link is opened.Note: Don't close the HTML tag!
Default implementation is:
out.append("<a");- Parameters:
out- The StringBuilder to write to.
-
closeLink
Called when a link is closedDefault implementation is:
out.append("</a>");- Parameters:
out- The StringBuilder to write to.
-
openImage
Called when an image is opened.Note: Don't close the HTML tag!
Default implementation is:
out.append("<img");- Parameters:
out- The StringBuilder to write to.
-
closeImage
Called when an image is closed.Default implementation is:
out.append(" />");- Parameters:
out- The StringBuilder to write to.
-