Class ListItemParser
java.lang.Object
com.vladsch.flexmark.parser.block.AbstractBlockParser
com.vladsch.flexmark.parser.core.ListItemParser
- All Implemented Interfaces:
BlockParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ListItemprivate booleanprivate booleanprivate final ListBlockParser.ListDataprivate final ListOptionsprivate final Parsing -
Constructor Summary
ConstructorsConstructorDescriptionListItemParser(ListOptions options, Parsing parsing, ListBlockParser.ListData listData) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanContain(ParserState state, BlockParser blockParser, Block block) voidcloseBlock(ParserState state) private BlockContinuecontinueAtColumn(int newColumn) getBlock()(package private) int(package private) int(package private) intbooleanbooleanisPropagatingLastBlankLine(BlockParser lastMatchedBlockParser) should be overridden in BlockQuote, FencedCode and ListItemtryContinue(ParserState state) See if the block parser can continue parsing the current blockMethods inherited from class AbstractBlockParser
addLine, breakOutOnDoubleBlankLine, canInterruptBy, finalizeClosedBlock, getBlockContent, getDataHolder, isClosed, isInterruptible, isParagraphParser, isRawText, parseInlines, removeBlankLines
-
Field Details
-
myBlock
-
myOptions
-
myListData
-
myParsing
-
myHadBlankLine
private boolean myHadBlankLine -
myIsEmpty
private boolean myIsEmpty
-
-
Constructor Details
-
ListItemParser
ListItemParser(ListOptions options, Parsing parsing, ListBlockParser.ListData listData)
-
-
Method Details
-
getContentColumn
int getContentColumn() -
getContentIndent
int getContentIndent() -
getMarkerContentIndent
int getMarkerContentIndent() -
isContainer
public boolean isContainer()- Specified by:
isContainerin interfaceBlockParser- Overrides:
isContainerin classAbstractBlockParser- Returns:
- true if the block that is parsed is a container (contains other blocks), or false if it's a leaf.
-
canContain
- Specified by:
canContainin interfaceBlockParser- Overrides:
canContainin classAbstractBlockParser- Parameters:
state- parser stateblockParser- block parserblock- new block being started @return true if this block parser's block can contain the given block type, false if it cannot
-
isPropagatingLastBlankLine
Description copied from class:AbstractBlockParsershould be overridden in BlockQuote, FencedCode and ListItem- Specified by:
isPropagatingLastBlankLinein interfaceBlockParser- Overrides:
isPropagatingLastBlankLinein classAbstractBlockParser- Parameters:
lastMatchedBlockParser- the last matched block parser instance- Returns:
- true if the blank line should be propagated to parent
-
getBlock
- Returns:
- the block parser's block node instance
-
closeBlock
-
continueAtColumn
-
tryContinue
Description copied from interface:BlockParserSee if the block parser can continue parsing the current block- Parameters:
state- current parsing state- Returns:
- block continue instance
-