Class TaskListNodeFormatter
- java.lang.Object
-
- com.vladsch.flexmark.ext.gfm.tasklist.internal.TaskListNodeFormatter
-
- All Implemented Interfaces:
NodeFormatter
public class TaskListNodeFormatter extends java.lang.Object implements NodeFormatter
-
-
Field Summary
Fields Modifier and Type Field Description private ListOptionslistOptionsprivate TaskListFormatOptionstaskListFormatOptions
-
Constructor Summary
Constructors Constructor Description TaskListNodeFormatter(DataHolder options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable 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.@Nullable java.util.Set<NodeFormattingHandler<?>>getNodeFormattingHandlers()static booleanhasIncompleteDescendants(Node node)intitemPriority(Node node)private voidrender(BulletList node, NodeFormatterContext context, MarkdownWriter markdown)private voidrender(OrderedList node, NodeFormatterContext context, MarkdownWriter markdown)private voidrender(TaskListItem node, NodeFormatterContext context, MarkdownWriter markdown)voidrenderList(ListBlock node, NodeFormatterContext context, MarkdownWriter markdown)inttaskItemPriority(Node 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
-
taskListFormatOptions
private final TaskListFormatOptions taskListFormatOptions
-
listOptions
private final ListOptions listOptions
-
-
Constructor Detail
-
TaskListNodeFormatter
public TaskListNodeFormatter(DataHolder options)
-
-
Method Detail
-
getNodeFormattingHandlers
@Nullable public @Nullable java.util.Set<NodeFormattingHandler<?>> getNodeFormattingHandlers()
- Specified by:
getNodeFormattingHandlersin interfaceNodeFormatter- Returns:
- the mapping of nodes this renderer handles to rendering function
-
getNodeClasses
@Nullable public @Nullable java.util.Set<java.lang.Class<?>> getNodeClasses()
Description copied from interface:NodeFormatterCollect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.- Specified by:
getNodeClassesin interfaceNodeFormatter- Returns:
- the nodes of interest to this formatter during formatting.
-
render
private void render(TaskListItem node, NodeFormatterContext context, MarkdownWriter markdown)
-
render
private void render(BulletList node, NodeFormatterContext context, MarkdownWriter markdown)
-
render
private void render(OrderedList node, NodeFormatterContext context, MarkdownWriter markdown)
-
hasIncompleteDescendants
public static boolean hasIncompleteDescendants(Node node)
-
taskItemPriority
public int taskItemPriority(Node node)
-
itemPriority
public int itemPriority(Node node)
-
renderList
public void renderList(ListBlock node, NodeFormatterContext context, MarkdownWriter markdown)
-
-