Top Inners Fields Constructors Methods
com.vladsch.flexmark.ext.definition.internal

public Class DefinitionNodeFormatter

extends Object
implements NodeFormatter
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.formatter.NodeFormatter
Imports
com.vladsch.flexmark.ast.Paragraph, com.vladsch.flexmark.ext.definition.DefinitionItem, .DefinitionList, .DefinitionTerm, com.vladsch.flexmark.formatter.*, com.vladsch.flexmark.parser.ListOptions, com.vladsch.flexmark.util.ast.Node, com.vladsch.flexmark.util.data.DataHolder, com.vladsch.flexmark.util.sequence.BasedSequence, .RepeatedSequence, org.jetbrains.annotations.NotNull, .Nullable, java.util.Arrays, .HashSet, .Set

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final ListOptions
private final DefinitionFormatOptions

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public @Nullable Set<Class<?>>
getNodeClasses()

Implements com.vladsch.flexmark.formatter.NodeFormatter.getNodeClasses.

Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.

public @Nullable Set<NodeFormattingHandler<?>>
private void
private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

listOptionsback to summary
private final ListOptions listOptions
optionsback to summary
private final DefinitionFormatOptions options

Constructor Detail

DefinitionNodeFormatterback to summary
public DefinitionNodeFormatter(DataHolder options)

Method Detail

getNodeClassesback to summary
public @Nullable Set<Class<?>> getNodeClasses()

Implements com.vladsch.flexmark.formatter.NodeFormatter.getNodeClasses.

Doc from com.vladsch.flexmark.formatter.NodeFormatter.getNodeClasses.

Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.

Returns:@Nullable Set<Class<?>>

the nodes of interest to this formatter during formatting.

Annotations
@Nullable
@Override
getNodeFormattingHandlersback to summary
public @Nullable Set<NodeFormattingHandler<?>> getNodeFormattingHandlers()

Implements com.vladsch.flexmark.formatter.NodeFormatter.getNodeFormattingHandlers.

Returns:@Nullable Set<NodeFormattingHandler<?>>

Doc from com.vladsch.flexmark.formatter.NodeFormatter.getNodeFormattingHandlers.

the mapping of nodes this renderer handles to rendering function

Annotations
@Nullable
@Override
renderback to summary
private void render(DefinitionList node, NodeFormatterContext context, MarkdownWriter markdown)
renderback to summary
private void render(DefinitionTerm node, NodeFormatterContext context, MarkdownWriter markdown)
renderback to summary
private void render(DefinitionItem node, NodeFormatterContext context, MarkdownWriter markdown)
com.vladsch.flexmark.ext.definition.internal back to summary

public Class DefinitionNodeFormatter.Factory

extends Object
implements NodeFormatterFactory
Class Inheritance
  • java.lang.Object
  • com.vladsch.flexmark.ext.definition.internal.DefinitionNodeFormatter.Factory
All Implemented Interfaces
com.vladsch.flexmark.formatter.NodeFormatterFactory, com.vladsch.flexmark.util.dependency.Dependent

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public @NotNull NodeFormatter
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Factoryback to summary
public Factory()

Method Detail

createback to summary
public @NotNull NodeFormatter create(@NotNull DataHolder options)
Annotations
@NotNull
@Override