Package org.commonmark.internal
Class ListItemParser
- java.lang.Object
-
- org.commonmark.parser.block.AbstractBlockParser
-
- org.commonmark.internal.ListItemParser
-
- All Implemented Interfaces:
BlockParser
public class ListItemParser extends AbstractBlockParser
-
-
Field Summary
Fields Modifier and Type Field Description private ListItemblockprivate intcontentIndentMinimum number of columns that the content has to be indented (relative to the containing block) to be part of this list item.private booleanhadBlankLine
-
Constructor Summary
Constructors Constructor Description ListItemParser(int markerIndent, int contentIndent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanContain(Block childBlock)BlockgetBlock()booleanisContainer()Return true if the block that is parsed is a container (contains other blocks), or false if it's a leaf.BlockContinuetryContinue(ParserState state)-
Methods inherited from class org.commonmark.parser.block.AbstractBlockParser
addLine, addSourceSpan, canHaveLazyContinuationLines, closeBlock, getDefinitions, parseInlines
-
-
-
-
Field Detail
-
block
private final ListItem block
-
contentIndent
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.
-
hadBlankLine
private boolean hadBlankLine
-
-
Method Detail
-
isContainer
public boolean isContainer()
Description copied from interface:BlockParserReturn true if the block that is parsed is a container (contains other blocks), or false if it's a leaf.- Specified by:
isContainerin interfaceBlockParser- Overrides:
isContainerin classAbstractBlockParser
-
canContain
public boolean canContain(Block childBlock)
- Specified by:
canContainin interfaceBlockParser- Overrides:
canContainin classAbstractBlockParser
-
getBlock
public Block getBlock()
-
tryContinue
public BlockContinue tryContinue(ParserState state)
-
-