Package com.vladsch.flexmark.formatter
Class NodeFormatterSubContext
- java.lang.Object
-
- com.vladsch.flexmark.formatter.NodeFormatterSubContext
-
- All Implemented Interfaces:
ExplicitAttributeIdProvider
,NodeFormatterContext
,TranslationContext
,LinkResolverBasicContext
,LinkResolverContext
,NodeContext<Node,NodeFormatterContext>
public abstract class NodeFormatterSubContext extends java.lang.Object implements NodeFormatterContext
-
-
Field Summary
Fields Modifier and Type Field Description protected MarkdownWriter
markdown
-
Constructor Summary
Constructors Constructor Description NodeFormatterSubContext(MarkdownWriter markdown)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flushTo(java.lang.Appendable out, int maxTrailingBlankLines)
void
flushTo(java.lang.Appendable out, int maxBlankLines, int maxTrailingBlankLines)
MarkdownWriter
getMarkdown()
Node
getRenderingNode()
void
setRenderingNode(Node renderingNode)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vladsch.flexmark.formatter.ExplicitAttributeIdProvider
addExplicitId
-
Methods inherited from interface com.vladsch.flexmark.html.renderer.LinkResolverContext
encodeUrl, getCurrentNode, resolveLink, resolveLink
-
Methods inherited from interface com.vladsch.flexmark.util.format.NodeContext
getCurrentNode, getSubContext, getSubContext, getSubContext
-
Methods inherited from interface com.vladsch.flexmark.formatter.NodeFormatterContext
delegateRender, getBlockQuoteLikePrefixChars, getBlockQuoteLikePrefixPredicate, getDocument, getFormatterOptions, getFormattingPhase, getOptions, getTrackedOffsets, getTrackedSequence, isRestoreTrackedSpaces, nodesOfType, nodesOfType, render, renderChildren, reversedNodesOfType, reversedNodesOfType
-
Methods inherited from interface com.vladsch.flexmark.formatter.TranslationContext
customPlaceholderFormat, getIdGenerator, getMergeContext, getRenderPurpose, getTranslationStore, isPostProcessingNonTranslating, isTransformingText, nonTranslatingSpan, postProcessNonTranslating, postProcessNonTranslating, transformAnchorRef, transformNonTranslating, transformTranslating, translatingRefTargetSpan, translatingSpan
-
-
-
-
Field Detail
-
markdown
protected final MarkdownWriter markdown
-
-
Constructor Detail
-
NodeFormatterSubContext
public NodeFormatterSubContext(@NotNull MarkdownWriter markdown)
-
-
Method Detail
-
getRenderingNode
@Nullable public Node getRenderingNode()
-
setRenderingNode
public void setRenderingNode(@Nullable Node renderingNode)
-
getMarkdown
@NotNull public MarkdownWriter getMarkdown()
- Specified by:
getMarkdown
in interfaceNodeFormatterContext
- Returns:
- the HTML writer to use
-
flushTo
public void flushTo(@NotNull java.lang.Appendable out, int maxTrailingBlankLines)
-
flushTo
public void flushTo(@NotNull java.lang.Appendable out, int maxBlankLines, int maxTrailingBlankLines)
-
-