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 ListItem
private int
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canContain
(Block childBlock) getBlock()
boolean
Return 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:BlockParser
Return true if the block that is parsed is a container (contains other blocks), or false if it's a leaf.- Specified by:
isContainer
in interfaceBlockParser
- Overrides:
isContainer
in classAbstractBlockParser
-
canContain
- Specified by:
canContain
in interfaceBlockParser
- Overrides:
canContain
in classAbstractBlockParser
-
getBlock
-
tryContinue
-