com.vladsch.flexmark.formatter.NodeFormatter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexmark-formatter Show documentation
Show all versions of flexmark-formatter Show documentation
flexmark-java extension for formatter
package com.vladsch.flexmark.formatter;
import com.vladsch.flexmark.util.data.DataHolder;
import com.vladsch.flexmark.util.data.MutableDataHolder;
import java.util.Set;
/**
* A renderer for a set of node types.
*/
public interface NodeFormatter {
/**
* @return the mapping of nodes this renderer handles to rendering function
*/
Set> getNodeFormattingHandlers();
/**
* Collect nodes of given type so that they can be quickly accessed without traversing the AST
* by all formatting extensions.
*
* @return the nodes of interest to this formatter during formatting.
*/
Set> getNodeClasses();
}