Package org.commonmark.internal
Class ListItemParser
java.lang.Object
org.commonmark.parser.block.AbstractBlockParser
org.commonmark.internal.ListItemParser
- All Implemented Interfaces:
BlockParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ListItemprivate intMinimum 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanContain(Block childBlock) getBlock()booleanReturn true if the block that is parsed is a container (contains other blocks), or false if it's a leaf.tryContinue(ParserState state) Methods inherited from class org.commonmark.parser.block.AbstractBlockParser
addLine, addSourceSpan, canHaveLazyContinuationLines, closeBlock, getDefinitions, parseInlines
-
Field Details
-
block
-
contentIndent
private int contentIndentMinimum 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
-
-
Constructor Details
-
ListItemParser
public ListItemParser(int markerIndent, int contentIndent)
-
-
Method Details
-
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
- Specified by:
canContainin interfaceBlockParser- Overrides:
canContainin classAbstractBlockParser
-
getBlock
-
tryContinue
-