Package com.vladsch.flexmark.formatter
Interface NodeFormatterFactory
-
- All Superinterfaces:
com.vladsch.flexmark.util.dependency.Dependent
public interface NodeFormatterFactory extends com.vladsch.flexmark.util.dependency.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()
@NotNull NodeFormatter
create(@NotNull com.vladsch.flexmark.util.data.DataHolder options)
Create a new node renderer for the specified rendering context.default @Nullable Set<Class<?>>
getAfterDependents()
default @Nullable Set<Class<?>>
getBeforeDependents()
-
-
-
Method Detail
-
create
@NotNull @NotNull NodeFormatter create(@NotNull @NotNull com.vladsch.flexmark.util.data.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 @Nullable Set<Class<?>> getAfterDependents()
- Specified by:
getAfterDependents
in interfacecom.vladsch.flexmark.util.dependency.Dependent
- 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 @Nullable Set<Class<?>> getBeforeDependents()
- Specified by:
getBeforeDependents
in interfacecom.vladsch.flexmark.util.dependency.Dependent
- 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 interfacecom.vladsch.flexmark.util.dependency.Dependent
-
-