All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.greenpepper.shaded.com.vladsch.flexmark.parser.PostProcessorFactory Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
package com.greenpepper.shaded.com.vladsch.flexmark.parser;

import com.greenpepper.shaded.com.vladsch.flexmark.ast.Document;
import com.greenpepper.shaded.com.vladsch.flexmark.ast.Node;
import com.greenpepper.shaded.com.vladsch.flexmark.util.ComputableFactory;
import com.greenpepper.shaded.com.vladsch.flexmark.util.dependency.Dependent;

import java.util.Map;
import java.util.Set;

public interface PostProcessorFactory extends ComputableFactory, Dependent {
    /**
     * 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.
     *
     * @return a map of desired node types mapped to a set of ancestors under which the post processor does not process the block
     */
    Map, Set>> getNodeTypes();

    /**
     * @param document for which to create the post processor
     * @return post processor for the document
     */
    @Override
    PostProcessor create(Document document);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy