APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.internal.org.commonmark.ext.gfm.tables.internal

public Class TableBlockParser

extends AbstractBlockParser
Class Inheritance
Imports
jdk.internal.org.commonmark.ext.gfm.tables.*, jdk.internal.org.commonmark.node.Block, .Node, .SourceSpan, jdk.internal.org.commonmark.parser.InlineParser, .SourceLine, .SourceLines, jdk.internal.org.commonmark.parser.block.*, jdk.internal.org.commonmark.text.Characters, java.util.ArrayList, .List

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
private static class

Field Summary

Modifier and TypeField and Description
private final TableBlock
private boolean
private final List<TableBlockParser.TableCellInfo>
private final List<SourceLine>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
addLine(SourceLine line)

Overrides jdk.internal.org.commonmark.parser.block.AbstractBlockParser.addLine.

Implements jdk.internal.org.commonmark.parser.block.BlockParser.addLine.

Add the part of a line that belongs to this block parser to parse (i.e. without any container block markers).

public boolean
private static TableCell.Alignment
getAlignment(boolean left, boolean right)

public Block
private TableCell
parseCell(SourceLine cell, int column, InlineParser inlineParser)

public void
private static List<TableBlockParser.TableCellInfo>
private static List<SourceLine>
public BlockContinue
Inherited from jdk.internal.org.commonmark.parser.block.AbstractBlockParser:
addSourceSpancanContaincloseBlockisContainer

Field Detail

blockback to summary
private final TableBlock block
canHaveLazyContinuationLinesback to summary
private boolean canHaveLazyContinuationLines
columnsback to summary
private final List<TableBlockParser.TableCellInfo> columns
rowLinesback to summary
private final List<SourceLine> rowLines

Constructor Detail

TableBlockParserback to summary
private TableBlockParser(List<TableBlockParser.TableCellInfo> columns, SourceLine headerLine)

Method Detail

addLineback to summary
public void addLine(SourceLine line)

Overrides jdk.internal.org.commonmark.parser.block.AbstractBlockParser.addLine.

Implements jdk.internal.org.commonmark.parser.block.BlockParser.addLine.

Doc from jdk.internal.org.commonmark.parser.block.BlockParser.addLine.

Add the part of a line that belongs to this block parser to parse (i.e. without any container block markers). Note that the line will only include a SourceLine#getSourceSpan() if source spans are enabled for inlines.

Annotations
@Override
canHaveLazyContinuationLinesback to summary
public boolean canHaveLazyContinuationLines()

Overrides jdk.internal.org.commonmark.parser.block.AbstractBlockParser.canHaveLazyContinuationLines.

Implements jdk.internal.org.commonmark.parser.block.BlockParser.canHaveLazyContinuationLines.

Doc from jdk.internal.org.commonmark.parser.block.BlockParser.canHaveLazyContinuationLines.

Return true if the block can have lazy continuation lines.

Lazy continuation lines are lines that were rejected by this tryContinue(ParserState) but didn't match any other block parsers either.

If true is returned here, those lines will get added via addLine(SourceLine). For false, the block is closed instead.

Annotations
@Override
getAlignmentback to summary
private static TableCell.Alignment getAlignment(boolean left, boolean right)
getBlockback to summary
public Block getBlock()

Implements jdk.internal.org.commonmark.parser.block.BlockParser.getBlock.

Annotations
@Override
parseCellback to summary
private TableCell parseCell(SourceLine cell, int column, InlineParser inlineParser)
parseInlinesback to summary
public void parseInlines(InlineParser inlineParser)

Overrides jdk.internal.org.commonmark.parser.block.AbstractBlockParser.parseInlines.

Implements jdk.internal.org.commonmark.parser.block.BlockParser.parseInlines.

Annotations
@Override
parseSeparatorback to summary
private static List<TableBlockParser.TableCellInfo> parseSeparator(CharSequence s)
splitback to summary
private static List<SourceLine> split(SourceLine line)
tryContinueback to summary
public BlockContinue tryContinue(ParserState state)

Implements jdk.internal.org.commonmark.parser.block.BlockParser.tryContinue.

Annotations
@Override
jdk.internal.org.commonmark.ext.gfm.tables.internal back to summary

public Class TableBlockParser.Factory

extends AbstractBlockParserFactory
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BlockStart

Constructor Detail

Factoryback to summary
public Factory()

Method Detail

tryStartback to summary
public BlockStart tryStart(ParserState state, MatchedBlockParser matchedBlockParser)

Implements jdk.internal.org.commonmark.parser.block.BlockParserFactory.tryStart.

Annotations
@Override
jdk.internal.org.commonmark.ext.gfm.tables.internal back to summary

private Class TableBlockParser.TableCellInfo

extends Object
Class Inheritance
  • java.lang.Object
  • jdk.internal.org.commonmark.ext.gfm.tables.internal.TableBlockParser.TableCellInfo

Field Summary

Modifier and TypeField and Description
private final TableCell.Alignment
private final int

Constructor Summary

AccessConstructor and Description
public
TableCellInfo(TableCell.Alignment alignment, int width)

Method Summary

Modifier and TypeMethod and Description
public TableCell.Alignment
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

alignmentback to summary
private final TableCell.Alignment alignment
widthback to summary
private final int width

Constructor Detail

TableCellInfoback to summary
public TableCellInfo(TableCell.Alignment alignment, int width)

Method Detail

getAlignmentback to summary
public TableCell.Alignment getAlignment()
getWidthback to summary
public int getWidth()