Package com.vladsch.flexmark.formatter
Interface NodeFormatterFactory
-
- All Superinterfaces:
Dependent
- All Known Implementing Classes:
AbbreviationNodeFormatter.Factory
,AdmonitionNodeFormatter.Factory
,AsideNodeFormatter.Factory
,AttributesNodeFormatter.Factory
,CoreNodeFormatter.Factory
,DefinitionNodeFormatter.Factory
,EmojiNodeFormatter.Factory
,EnumeratedReferenceNodeFormatter.Factory
,FootnoteNodeFormatter.Factory
,GitLabNodeFormatter.Factory
,JekyllFrontMatterNodeFormatter.Factory
,JekyllTagNodeFormatter.Factory
,MacrosNodeFormatter.Factory
,SimTocNodeFormatter.Factory
,SpecExampleNodeFormatter.Factory
,TableNodeFormatter.Factory
,WikiLinkNodeFormatter.Factory
,YamlFrontMatterNodeFormatter.Factory
public interface NodeFormatterFactory extends Dependent
Factory for instantiating new node renderers when rendering is done.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
affectsGlobalScope()
NodeFormatter
create(DataHolder options)
Create a new node renderer for the specified rendering context.default java.util.Set<java.lang.Class<?>>
getAfterDependents()
default java.util.Set<java.lang.Class<?>>
getBeforeDependents()
-
-
-
Method Detail
-
create
@NotNull NodeFormatter create(@NotNull DataHolder options)
Create a new node renderer for the specified rendering context.- Parameters:
options
- the context for rendering (normally passed on to the node renderer)- Returns:
- a node renderer
-
getAfterDependents
@Nullable default java.util.Set<java.lang.Class<?>> getAfterDependents()
- Specified by:
getAfterDependents
in interfaceDependent
- Returns:
- null or a list of processors that must be executed before calling this one if any of the blocks in the list affect global state then these will be run on ALL blocks of the document before this pre processor is called.
-
getBeforeDependents
@Nullable default java.util.Set<java.lang.Class<?>> getBeforeDependents()
- Specified by:
getBeforeDependents
in interfaceDependent
- Returns:
- null or a list of processors before which this has to be run if any of the blocks in the list affect global state then these will be run on ALL blocks of the document before this pre processor is called.
-
affectsGlobalScope
default boolean affectsGlobalScope()
- Specified by:
affectsGlobalScope
in interfaceDependent
- Returns:
- true if this dependent affects the global scope, which means that any that depend on it have to be run after this dependent has run against all elements. Otherwise, the dependent can run on an element after its dependents have processed an element. parsed.
-
-