Package com.vladsch.flexmark.parser
Interface PostProcessorFactory
-
- All Superinterfaces:
com.vladsch.flexmark.util.dependency.Dependent
,Function<com.vladsch.flexmark.util.ast.Document,PostProcessor>
- All Known Implementing Classes:
DocumentPostProcessorFactory
,NodePostProcessorFactory
public interface PostProcessorFactory extends Function<com.vladsch.flexmark.util.ast.Document,PostProcessor>, com.vladsch.flexmark.util.dependency.Dependent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull PostProcessor
apply(@NotNull com.vladsch.flexmark.util.ast.Document document)
@Nullable 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
-
getNodeTypes
@Nullable @Nullable 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. DoNotDecorate.class if the processor adds links so that existing links will be ignored.- 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 @NotNull PostProcessor apply(@NotNull @NotNull com.vladsch.flexmark.util.ast.Document document)
- Specified by:
apply
in interfaceFunction<com.vladsch.flexmark.util.ast.Document,PostProcessor>
- Parameters:
document
- for which to create the post processor- Returns:
- post processor for the document
-
-