Class NodePostProcessorFactory

    • Constructor Detail

      • NodePostProcessorFactory

        public NodePostProcessorFactory​(boolean ignored)
    • Method Detail

      • getAfterDependents

        @Nullable
        public @Nullable Set<Class<?>> getAfterDependents()
        Specified by:
        getAfterDependents in interface com.vladsch.flexmark.util.dependency.Dependent
      • getBeforeDependents

        @Nullable
        public @Nullable Set<Class<?>> getBeforeDependents()
        Specified by:
        getBeforeDependents in interface com.vladsch.flexmark.util.dependency.Dependent
      • affectsGlobalScope

        public final boolean affectsGlobalScope()
        Specified by:
        affectsGlobalScope in interface com.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 interface PostProcessorFactory
        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 interface Function<com.vladsch.flexmark.util.ast.Document,​PostProcessor>
        Specified by:
        apply in interface PostProcessorFactory
        Parameters:
        document - for which to create the post processor
        Returns:
        post processor for the document