Top Fields Constructors Methods
jdk.internal.org.commonmark.internal

public Class ListItemParser

extends AbstractBlockParser
Class Inheritance
Imports
jdk.internal.org.commonmark.node.Block, .ListBlock, .ListItem, .Paragraph, jdk.internal.org.commonmark.parser.block.AbstractBlockParser, .BlockContinue, .ParserState

Field Summary

Modifier and TypeField and Description
private final ListItem
private int
contentIndent

Minimum number of columns that the content has to be indented (relative to the containing block) to be part of this list item.

private boolean

Constructor Summary

AccessConstructor and Description
public
ListItemParser(int markerIndent, int contentIndent)

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.

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

Field Detail

blockback to summary
private final ListItem block
contentIndentback to summary
private int contentIndent

Minimum number of columns that the content has to be indented (relative to the containing block) to be part of this list item.

hadBlankLineback to summary
private boolean hadBlankLine

Constructor Detail

ListItemParserback to summary
public ListItemParser(int markerIndent, int contentIndent)

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
tryContinueback to summary
public BlockContinue tryContinue(ParserState state)

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

Annotations
@Override