Top Description Methods
com.vladsch.flexmark.formatter

public Interface NodeFormatterFactory

extends Dependent
Known Direct Implementers
com.vladsch.flexmark.formatter.internal.CoreNodeFormatter.Factory
Imports
com.vladsch.flexmark.util.data.DataHolder, com.vladsch.flexmark.util.dependency.Dependent, org.jetbrains.annotations.NotNull, .Nullable, java.util.Set

Factory for instantiating new node renderers when rendering is done.

Method Summary

Modifier and TypeMethod and Description
public default boolean
public @NotNull NodeFormatter

Returns:

a node renderer
create
(@NotNull DataHolder
the context for rendering (normally passed on to the node renderer)
options
)

Create a new node renderer for the specified rendering context.

public default @Nullable Set<Class<?>>

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.
getAfterDependents
()

Implements com.vladsch.flexmark.util.dependency.Dependent.getAfterDependents.

public default @Nullable Set<Class<?>>

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.
getBeforeDependents
()

Implements com.vladsch.flexmark.util.dependency.Dependent.getBeforeDependents.

Method Detail

affectsGlobalScopeback to summary
public default boolean affectsGlobalScope()

Implements com.vladsch.flexmark.util.dependency.Dependent.affectsGlobalScope.

Returns:boolean

Doc from com.vladsch.flexmark.util.dependency.Dependent.affectsGlobalScope.

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.

Annotations
@Override
createback to summary
public @NotNull NodeFormatter create(@NotNull DataHolder options)

Create a new node renderer for the specified rendering context.

Parameters
options:@NotNull DataHolder

the context for rendering (normally passed on to the node renderer)

Returns:@NotNull NodeFormatter

a node renderer

Annotations
@NotNull
getAfterDependentsback to summary
public default @Nullable Set<Class<?>> getAfterDependents()

Implements com.vladsch.flexmark.util.dependency.Dependent.getAfterDependents.

Returns:@Nullable Set<Class<?>>

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.

Annotations
@Override
@Nullable
getBeforeDependentsback to summary
public default @Nullable Set<Class<?>> getBeforeDependents()

Implements com.vladsch.flexmark.util.dependency.Dependent.getBeforeDependents.

Returns:@Nullable Set<Class<?>>

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.

Annotations
@Override
@Nullable