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

public Class ListBlockParser

extends AbstractBlockParser
Class Inheritance
Imports
jdk.internal.org.commonmark.internal.util.Parsing, jdk.internal.org.commonmark.node.*, jdk.internal.org.commonmark.parser.block.*, java.util.Objects

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final ListBlock
private boolean
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public Block
public boolean
isContainer()

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

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

Return true if the block that is parsed is a container (contains other blocks), or false if it's a leaf.

private static boolean
isSpaceTabOrEnd(CharSequence line, int index)

private static boolean
listsMatch(ListBlock a, ListBlock b)

Returns true if the two list items are of the same type, with the same delimiter and bullet character.

private static ListBlockParser.ListData
parseList(CharSequence line, final int markerIndex, final int markerColumn, final boolean inParagraph)

Parse a list marker and return data on the marker or null.

private static ListBlockParser.ListMarkerData
parseListMarker(CharSequence line, int index)

private static ListBlockParser.ListMarkerData
parseOrderedList(CharSequence line, int index)

public BlockContinue
Inherited from jdk.internal.org.commonmark.parser.block.AbstractBlockParser:
addLineaddSourceSpancanHaveLazyContinuationLinescloseBlockparseInlines

Field Detail

blockback to summary
private final ListBlock block
hadBlankLineback to summary
private boolean hadBlankLine
linesAfterBlankback to summary
private int linesAfterBlank

Constructor Detail

ListBlockParserback to summary
public ListBlockParser(ListBlock block)

Method Detail

canContainback to summary
public boolean canContain(Block childBlock)

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

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

Annotations
@Override
getBlockback to summary
public Block getBlock()

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

Annotations
@Override
isContainerback to summary
public boolean isContainer()

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

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

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

Return true if the block that is parsed is a container (contains other blocks), or false if it's a leaf.

Annotations
@Override
isSpaceTabOrEndback to summary
private static boolean isSpaceTabOrEnd(CharSequence line, int index)
listsMatchback to summary
private static boolean listsMatch(ListBlock a, ListBlock b)

Returns true if the two list items are of the same type, with the same delimiter and bullet character. This is used in agglomerating list items into lists.

parseListback to summary
private static ListBlockParser.ListData parseList(CharSequence line, final int markerIndex, final int markerColumn, final boolean inParagraph)

Parse a list marker and return data on the marker or null.

parseListMarkerback to summary
private static ListBlockParser.ListMarkerData parseListMarker(CharSequence line, int index)
parseOrderedListback to summary
private static ListBlockParser.ListMarkerData parseOrderedList(CharSequence line, int index)
tryContinueback to summary
public BlockContinue tryContinue(ParserState state)

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

Annotations
@Override
jdk.internal.org.commonmark.internal back to summary

public Class ListBlockParser.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.internal back to summary

private Class ListBlockParser.ListData

extends Object
Class Inheritance
  • java.lang.Object
  • jdk.internal.org.commonmark.internal.ListBlockParser.ListData

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final ListBlock

Constructor Summary

AccessConstructor and Description
pack-priv
ListData(ListBlock listBlock, int contentColumn)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentColumnback to summary
pack-priv final int contentColumn
listBlockback to summary
pack-priv final ListBlock listBlock

Constructor Detail

ListDataback to summary
pack-priv ListData(ListBlock listBlock, int contentColumn)
jdk.internal.org.commonmark.internal back to summary

private Class ListBlockParser.ListMarkerData

extends Object
Class Inheritance
  • java.lang.Object
  • jdk.internal.org.commonmark.internal.ListBlockParser.ListMarkerData

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final ListBlock

Constructor Summary

AccessConstructor and Description
pack-priv
ListMarkerData(ListBlock listBlock, int indexAfterMarker)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexAfterMarkerback to summary
pack-priv final int indexAfterMarker
listBlockback to summary
pack-priv final ListBlock listBlock

Constructor Detail

ListMarkerDataback to summary
pack-priv ListMarkerData(ListBlock listBlock, int indexAfterMarker)