Package com.vladsch.flexmark.html
Class NodeRendererSubContext
- java.lang.Object
-
- com.vladsch.flexmark.html.NodeRendererSubContext
-
- All Implemented Interfaces:
LinkResolverBasicContext,LinkResolverContext,NodeRendererContext
- Direct Known Subclasses:
HtmlRenderer.MainNodeRenderer,HtmlRenderer.MainNodeRenderer.SubNodeRenderer
public abstract class NodeRendererSubContext extends java.lang.Object implements NodeRendererContext
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intdoNotRenderLinksNesting(package private) HtmlWriterhtmlWriter(package private) NodeRenderingHandlerWrapperrenderingHandlerWrapper(package private) NoderenderingNode
-
Constructor Summary
Constructors Constructor Description NodeRendererSubContext(@NotNull HtmlWriter htmlWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoNotRenderLinks()Increment the do not render links in this context.voiddoNotRenderLinks(boolean doNotRenderLinks)Increment/Decrement the do not render links in this context.voiddoRenderLinks()Decrement the do not render links in this context.voidflushTo(@NotNull java.lang.Appendable out, int maxTrailingBlankLines)voidflushTo(@NotNull java.lang.Appendable out, int maxBlankLines, int maxTrailingBlankLines)protected intgetDoNotRenderLinksNesting()@NotNull HtmlWritergetHtmlWriter()booleanisDoNotRenderLinks()Whether the current rendering context has link rendering disabled.-
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.html.renderer.LinkResolverContext
encodeUrl, getCurrentNode, getDocument, getOptions, render, renderChildren, resolveLink, resolveLink
-
Methods inherited from interface com.vladsch.flexmark.html.renderer.NodeRendererContext
delegateRender, extendRenderingNodeAttributes, extendRenderingNodeAttributes, getDelegatedSubContext, getHtmlOptions, getNodeId, getRenderingPhase, getSubContext
-
-
-
-
Field Detail
-
htmlWriter
final HtmlWriter htmlWriter
-
renderingNode
Node renderingNode
-
renderingHandlerWrapper
NodeRenderingHandlerWrapper renderingHandlerWrapper
-
doNotRenderLinksNesting
int doNotRenderLinksNesting
-
-
Constructor Detail
-
NodeRendererSubContext
public NodeRendererSubContext(@NotNull @NotNull HtmlWriter htmlWriter)
-
-
Method Detail
-
getHtmlWriter
@NotNull public @NotNull HtmlWriter getHtmlWriter()
- Specified by:
getHtmlWriterin interfaceNodeRendererContext- Returns:
- the HTML writer to use
-
flushTo
public void flushTo(@NotNull @NotNull java.lang.Appendable out, int maxTrailingBlankLines)
-
flushTo
public void flushTo(@NotNull @NotNull java.lang.Appendable out, int maxBlankLines, int maxTrailingBlankLines)
-
getDoNotRenderLinksNesting
protected int getDoNotRenderLinksNesting()
-
isDoNotRenderLinks
public boolean isDoNotRenderLinks()
Description copied from interface:NodeRendererContextWhether the current rendering context has link rendering disabled. When true any renderer that would render a link, should only output the text of that link and image links should not render anything.- Specified by:
isDoNotRenderLinksin interfaceNodeRendererContext- Returns:
- true if links should be output as only text.
- See Also:
NodeRendererContext.isDoNotRenderLinks(),NodeRendererContext.doNotRenderLinks(),NodeRendererContext.doRenderLinks(),NodeRendererContext.doNotRenderLinks(boolean)
-
doNotRenderLinks
public void doNotRenderLinks(boolean doNotRenderLinks)
Description copied from interface:NodeRendererContextIncrement/Decrement the do not render links in this context. This value will persist for the duration of the current node's render() method and will be restored upon return. Effectively it will persist for the rendering of the children of this node.- Specified by:
doNotRenderLinksin interfaceNodeRendererContext- Parameters:
doNotRenderLinks- if true then increment the doNotRenderLinks value, else decrement it- See Also:
NodeRendererContext.isDoNotRenderLinks(),NodeRendererContext.doNotRenderLinks(),NodeRendererContext.doRenderLinks(),NodeRendererContext.doNotRenderLinks(boolean)
-
doNotRenderLinks
public void doNotRenderLinks()
Description copied from interface:NodeRendererContextIncrement the do not render links in this context. This value will persist for the duration of the current node's render() method and will be restored upon return. Effectively it will persist for the rendering of the children of this node.
-
doRenderLinks
public void doRenderLinks()
Description copied from interface:NodeRendererContextDecrement the do not render links in this context. This value will persist for the duration of the current node's render() method and will be restored upon return. Effectively it will persist for the rendering of the children of this node.
-
-