Class TableNodeFormatter
- java.lang.Object
-
- com.vladsch.flexmark.ext.tables.internal.TableNodeFormatter
-
- All Implemented Interfaces:
NodeFormatter
public class TableNodeFormatter extends java.lang.Object implements NodeFormatter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TableNodeFormatter.Factory
-
Field Summary
Fields Modifier and Type Field Description private MarkdownTable
myTable
private TableFormatOptions
options
private boolean
parserTrimCellWhiteSpace
-
Constructor Summary
Constructors Constructor Description TableNodeFormatter(DataHolder options)
-
Method Summary
All 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()
private void
render(Text node, NodeFormatterContext context, MarkdownWriter markdown)
private void
render(TableBlock node, NodeFormatterContext context, MarkdownWriter markdown)
private void
render(TableBody node, NodeFormatterContext context, MarkdownWriter markdown)
private void
render(TableCaption node, NodeFormatterContext context, MarkdownWriter markdown)
private void
render(TableCell node, NodeFormatterContext context, MarkdownWriter markdown)
private void
render(TableHead node, NodeFormatterContext context, MarkdownWriter markdown)
private void
render(TableRow node, NodeFormatterContext context, MarkdownWriter markdown)
private void
render(TableSeparator node, NodeFormatterContext context, MarkdownWriter markdown)
-
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
-
options
private final TableFormatOptions options
-
parserTrimCellWhiteSpace
private final boolean parserTrimCellWhiteSpace
-
myTable
private MarkdownTable myTable
-
-
Constructor Detail
-
TableNodeFormatter
public TableNodeFormatter(DataHolder options)
-
-
Method Detail
-
getNodeClasses
@Nullable public @Nullable 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.
-
getNodeFormattingHandlers
@Nullable public @Nullable java.util.Set<NodeFormattingHandler<?>> getNodeFormattingHandlers()
- Specified by:
getNodeFormattingHandlers
in interfaceNodeFormatter
- Returns:
- the mapping of nodes this renderer handles to rendering function
-
render
private void render(TableBlock node, NodeFormatterContext context, MarkdownWriter markdown)
-
render
private void render(TableHead node, NodeFormatterContext context, MarkdownWriter markdown)
-
render
private void render(TableSeparator node, NodeFormatterContext context, MarkdownWriter markdown)
-
render
private void render(TableBody node, NodeFormatterContext context, MarkdownWriter markdown)
-
render
private void render(TableRow node, NodeFormatterContext context, MarkdownWriter markdown)
-
render
private void render(TableCaption node, NodeFormatterContext context, MarkdownWriter markdown)
-
render
private void render(TableCell node, NodeFormatterContext context, MarkdownWriter markdown)
-
render
private void render(Text node, NodeFormatterContext context, MarkdownWriter markdown)
-
-