Class WikiLinkNodeFormatter
- java.lang.Object
-
- com.vladsch.flexmark.ext.wikilink.internal.WikiLinkNodeFormatter
-
- All Implemented Interfaces:
NodeFormatter
,PhasedNodeFormatter
public class WikiLinkNodeFormatter extends java.lang.Object implements PhasedNodeFormatter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WikiLinkNodeFormatter.Factory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<FormattingPhase>
FORMATTING_PHASES
-
Constructor Summary
Constructors Constructor Description WikiLinkNodeFormatter(DataHolder options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<FormattingPhase>
getFormattingPhases()
java.util.Set<java.lang.Class<?>>
getNodeClasses()
Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.java.util.Set<NodeFormattingHandler<?>>
getNodeFormattingHandlers()
void
renderDocument(NodeFormatterContext context, MarkdownWriter markdown, Document document, FormattingPhase phase)
Render the specified node.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vladsch.flexmark.formatter.NodeFormatter
getBlockQuoteLikePrefixChar
-
-
-
-
Field Detail
-
FORMATTING_PHASES
public static final java.util.HashSet<FormattingPhase> FORMATTING_PHASES
-
-
Constructor Detail
-
WikiLinkNodeFormatter
public WikiLinkNodeFormatter(DataHolder options)
-
-
Method Detail
-
getNodeFormattingHandlers
@Nullable public java.util.Set<NodeFormattingHandler<?>> getNodeFormattingHandlers()
- Specified by:
getNodeFormattingHandlers
in interfaceNodeFormatter
- Returns:
- the mapping of nodes this renderer handles to rendering function
-
getNodeClasses
@Nullable public java.util.Set<java.lang.Class<?>> getNodeClasses()
Description copied from interface:NodeFormatter
Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.- Specified by:
getNodeClasses
in interfaceNodeFormatter
- Returns:
- the nodes of interest to this formatter during formatting.
-
getFormattingPhases
@Nullable public java.util.Set<FormattingPhase> getFormattingPhases()
- Specified by:
getFormattingPhases
in interfacePhasedNodeFormatter
-
renderDocument
public void renderDocument(@NotNull NodeFormatterContext context, @NotNull MarkdownWriter markdown, @NotNull Document document, @NotNull FormattingPhase phase)
Description copied from interface:PhasedNodeFormatter
Render the specified node.- Specified by:
renderDocument
in interfacePhasedNodeFormatter
- Parameters:
context
- node renderer context instancemarkdown
- markdown writer instancedocument
- the document node to renderphase
- rendering phase for which to generate the output. Will be any ofFormattingPhase
exceptFormattingPhase.DOCUMENT
because this phase is used for the non-phased node rendering
-
-