Class NodePostProcessorFactory
- java.lang.Object
-
- com.vladsch.flexmark.parser.block.NodePostProcessorFactory
-
- All Implemented Interfaces:
PostProcessorFactory
,com.vladsch.flexmark.util.dependency.Dependent
,Function<com.vladsch.flexmark.util.ast.Document,PostProcessor>
public abstract class NodePostProcessorFactory extends Object implements PostProcessorFactory
-
-
Constructor Summary
Constructors Constructor Description NodePostProcessorFactory(boolean ignored)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addNodes(Class<?>... nodeTypes)
protected void
addNodeWithExclusions(Class<? extends com.vladsch.flexmark.util.ast.Node> nodeType, Class<?>... excludeDescendantsOf)
boolean
affectsGlobalScope()
abstract @NotNull NodePostProcessor
apply(@NotNull com.vladsch.flexmark.util.ast.Document document)
@Nullable Set<Class<?>>
getAfterDependents()
@Nullable Set<Class<?>>
getBeforeDependents()
Map<Class<?>,Set<Class<?>>>
getNodeTypes()
A map of nodes of interest as keys and values a set of classes, if implemented by an ancestors then the node should be excluded from processing by this processor i.e.
-
-
-
Method Detail
-
getAfterDependents
@Nullable public @Nullable Set<Class<?>> getAfterDependents()
- Specified by:
getAfterDependents
in interfacecom.vladsch.flexmark.util.dependency.Dependent
-
getBeforeDependents
@Nullable public @Nullable Set<Class<?>> getBeforeDependents()
- Specified by:
getBeforeDependents
in interfacecom.vladsch.flexmark.util.dependency.Dependent
-
affectsGlobalScope
public final boolean affectsGlobalScope()
- Specified by:
affectsGlobalScope
in interfacecom.vladsch.flexmark.util.dependency.Dependent
-
addNodeWithExclusions
protected final void addNodeWithExclusions(Class<? extends com.vladsch.flexmark.util.ast.Node> nodeType, Class<?>... excludeDescendantsOf)
-
addNodes
protected final void addNodes(Class<?>... nodeTypes)
-
getNodeTypes
public final Map<Class<?>,Set<Class<?>>> getNodeTypes()
Description copied from interface:PostProcessorFactory
A map of nodes of interest as keys and values a set of classes, if implemented by an ancestors then the node should be excluded from processing by this processor i.e. DoNotDecorate.class if the processor adds links so that existing links will be ignored.- Specified by:
getNodeTypes
in interfacePostProcessorFactory
- Returns:
- a map of desired node types mapped to a set of ancestors under which the post processor does not process the block
-
apply
@NotNull public abstract @NotNull NodePostProcessor apply(@NotNull @NotNull com.vladsch.flexmark.util.ast.Document document)
- Specified by:
apply
in interfaceFunction<com.vladsch.flexmark.util.ast.Document,PostProcessor>
- Specified by:
apply
in interfacePostProcessorFactory
- Parameters:
document
- for which to create the post processor- Returns:
- post processor for the document
-
-