Package com.vladsch.flexmark.parser
Interface PostProcessorFactory
-
- All Superinterfaces:
Dependent
,java.util.function.Function<Document,PostProcessor>
- All Known Implementing Classes:
AbbreviationNodePostProcessor.Factory
,AnchorLinkNodePostProcessor.Factory
,AttributesNodePostProcessor.Factory
,AutolinkNodePostProcessor.Factory
,DocumentPostProcessorFactory
,EnumeratedReferenceNodePostProcessor.Factory
,EscapedCharacterNodePostProcessor.Factory
,IncludeNodePostProcessor.Factory
,MediaTagsNodePostProcessor.Factory
,NodePostProcessorFactory
,SyntheticLinkSample.AppendedMarkdownPostProcessor.Factory
,SyntheticLinkSample.SyntheticLinkPostProcessor.Factory
,YouTubeLinkNodePostProcessor.Factory
,YouTubeLinkSample.YouTubeLinkNodePostProcessor.Factory
,ZzzzzzDocumentPostProcessor.Factory
,ZzzzzzNodePostProcessor.Factory
public interface PostProcessorFactory extends java.util.function.Function<Document,PostProcessor>, Dependent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PostProcessor
apply(Document document)
java.util.Map<java.lang.Class<?>,java.util.Set<java.lang.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.-
Methods inherited from interface com.vladsch.flexmark.util.dependency.Dependent
affectsGlobalScope, getAfterDependents, getBeforeDependents
-
-
-
-
Method Detail
-
getNodeTypes
@Nullable java.util.Map<java.lang.Class<?>,java.util.Set<java.lang.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 PostProcessor apply(@NotNull Document document)
- Specified by:
apply
in interfacejava.util.function.Function<Document,PostProcessor>
- Parameters:
document
- for which to create the post processor- Returns:
- post processor for the document
-
-