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
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) final HtmlWriter
(package private) NodeRenderingHandlerWrapper
(package private) Node
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Increment the do not render links in this context.void
doNotRenderLinks
(boolean doNotRenderLinks) Increment/Decrement the do not render links in this context.void
Decrement the do not render links in this context.void
flushTo
(@NotNull Appendable out, int maxTrailingBlankLines) void
flushTo
(@NotNull Appendable out, int maxBlankLines, int maxTrailingBlankLines) protected int
@NotNull HtmlWriter
boolean
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 Details
-
htmlWriter
-
renderingNode
Node renderingNode -
renderingHandlerWrapper
NodeRenderingHandlerWrapper renderingHandlerWrapper -
doNotRenderLinksNesting
int doNotRenderLinksNesting
-
-
Constructor Details
-
NodeRendererSubContext
-
-
Method Details
-
getHtmlWriter
- Specified by:
getHtmlWriter
in interfaceNodeRendererContext
- Returns:
- the HTML writer to use
-
flushTo
-
flushTo
-
getDoNotRenderLinksNesting
protected int getDoNotRenderLinksNesting() -
isDoNotRenderLinks
public boolean isDoNotRenderLinks()Description copied from interface:NodeRendererContext
Whether 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:
isDoNotRenderLinks
in interfaceNodeRendererContext
- Returns:
- true if links should be output as only text.
- See Also:
-
doNotRenderLinks
public void doNotRenderLinks(boolean doNotRenderLinks) Description copied from interface:NodeRendererContext
Increment/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:
doNotRenderLinks
in interfaceNodeRendererContext
- Parameters:
doNotRenderLinks
- if true then increment the doNotRenderLinks value, else decrement it- See Also:
-
doNotRenderLinks
public void doNotRenderLinks()Description copied from interface:NodeRendererContext
Increment 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:
doNotRenderLinks
in interfaceNodeRendererContext
- See Also:
-
doRenderLinks
public void doRenderLinks()Description copied from interface:NodeRendererContext
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:
doRenderLinks
in interfaceNodeRendererContext
- See Also:
-