Top Fields Constructors Methods
com.vladsch.flexmark.ext.gfm.tasklist.internal

public Class TaskListNodeFormatter

extends Object
implements NodeFormatter
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.formatter.NodeFormatter
Annotations
@SuppressWarnings:WeakerAccess
Imports
com.vladsch.flexmark.ast.*, com.vladsch.flexmark.ext.gfm.tasklist.TaskListItem, .TaskListItemPlacement, com.vladsch.flexmark.formatter.*, com.vladsch.flexmark.parser.ListOptions, com.vladsch.flexmark.util.ast.BlankLine, .Block, .Node, com.vladsch.flexmark.util.data.DataHolder, com.vladsch.flexmark.util.sequence.BasedSequence, org.jetbrains.annotations.Nullable, java.util.ArrayList, .Arrays, .HashSet, .Set

Field Summary

Modifier and TypeField and Description
private final ListOptions
private final TaskListFormatOptions

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<?>>
public static boolean
public int
private void
private void
private void
public void
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

listOptionsback to summary
private final ListOptions listOptions
taskListFormatOptionsback to summary
private final TaskListFormatOptions taskListFormatOptions

Constructor Detail

TaskListNodeFormatterback to summary
public TaskListNodeFormatter(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
hasIncompleteDescendantsback to summary
public static boolean hasIncompleteDescendants(Node node)
itemPriorityback to summary
public int itemPriority(Node node)
renderback to summary
private void render(TaskListItem node, NodeFormatterContext context, MarkdownWriter markdown)
renderback to summary
private void render(BulletList node, NodeFormatterContext context, MarkdownWriter markdown)
renderback to summary
private void render(OrderedList node, NodeFormatterContext context, MarkdownWriter markdown)
renderListback to summary
public void renderList(ListBlock node, NodeFormatterContext context, MarkdownWriter markdown)
taskItemPriorityback to summary
public int taskItemPriority(Node node)