Package com.vladsch.flexmark.util.format
Interface NodeContext<N,C extends NodeContext<N,C>>
-
- All Known Subinterfaces:
HtmlNodeConverterContext
,NodeFormatterContext
- All Known Implementing Classes:
HtmlNodeConverterSubContext
,NodeFormatterSubContext
public interface NodeContext<N,C extends NodeContext<N,C>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description N
getCurrentNode()
DataHolder
getOptions()
Get options for the contextC
getSubContext()
Creates a child rendering context that can be used to collect rendered html text.C
getSubContext(DataHolder options)
Creates a child rendering context that can be used to collect rendered html text.C
getSubContext(DataHolder options, ISequenceBuilder<?,?> builder)
Creates a child rendering context that can be used to collect rendered html text.
-
-
-
Method Detail
-
getSubContext
@NotNull C 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
@NotNull C getSubContext(@Nullable DataHolder options)
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 DataHolder options, @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
@Nullable N getCurrentNode()
- Returns:
- the current node being rendered
-
getOptions
@NotNull DataHolder getOptions()
Get options for the context- Returns:
- data holder
-
-