Package com.vladsch.flexmark.util.format
Interface NodeContext<N,C extends NodeContext<N,C>>
- All Known Subinterfaces:
HtmlNodeConverterContext
,NodeFormatterContext
- All Known Implementing Classes:
FlexmarkHtmlConverter.MainHtmlConverter
,FlexmarkHtmlConverter.MainHtmlConverter.SubHtmlNodeConverter
,Formatter.MainNodeFormatter
,Formatter.MainNodeFormatter.SubNodeFormatter
,HtmlNodeConverterSubContext
,NodeFormatterSubContext
public interface NodeContext<N,C extends NodeContext<N,C>>
-
Method Summary
Modifier and TypeMethodDescription@NotNull DataHolder
Get options for the contextCreates a child rendering context that can be used to collect rendered html text.getSubContext
(@Nullable DataHolder options) Creates a child rendering context that can be used to collect rendered html text.getSubContext
(@Nullable DataHolder options, @NotNull ISequenceBuilder<?, ?> builder) Creates a child rendering context that can be used to collect rendered html text.
-
Method Details
-
getSubContext
Creates a child rendering context that can be used to collect rendered html text. The child context inherits everything but the HtmlRenderer and doNotRenderLinksNesting from the parent.- Returns:
- a new rendering context with a given appendable for its output
-
getSubContext
Creates a child rendering context that can be used to collect rendered html text. The child context inherits everything but the HtmlRenderer and doNotRenderLinksNesting from the parent.- Parameters:
options
- options to use for the context (only options which do not affect the context construction will be used)- Returns:
- a new rendering context with a given appendable for its output
-
getSubContext
@NotNull C getSubContext(@Nullable @Nullable DataHolder options, @NotNull @NotNull ISequenceBuilder<?, ?> builder) Creates a child rendering context that can be used to collect rendered html text. The child context inherits everything but the HtmlRenderer and doNotRenderLinksNesting from the parent.- Parameters:
options
- options to use for the context (only options which do not affect the context construction will be used)builder
- sequence builder to user for appended text for tracking original base offsets- Returns:
- a new rendering context with a given appendable for its output
-
getCurrentNode
- Returns:
- the current node being rendered
-
getOptions
Get options for the context- Returns:
- data holder
-