public abstract class AbstractBlockParser extends Object implements BlockParser
| Constructor and Description |
|---|
AbstractBlockParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLine(ParserState state,
com.vladsch.flexmark.util.sequence.BasedSequence line)
Add another line to the block
|
boolean |
breakOutOnDoubleBlankLine() |
boolean |
canContain(ParserState state,
BlockParser blockParser,
com.vladsch.flexmark.ast.Block block) |
boolean |
canInterruptBy(BlockParserFactory blockParserFactory)
Allows block parsers to determine if they can be interrupted by other block parsers
|
void |
finalizeClosedBlock()
Used to clean up and prepare for the next parsing run of the AbstractBlockParser
for internal parser house keeping not for BlockParser implementors
|
com.vladsch.flexmark.ast.BlockContent |
getBlockContent() |
com.vladsch.flexmark.util.options.MutableDataHolder |
getDataHolder() |
boolean |
isClosed() |
boolean |
isContainer() |
boolean |
isInterruptible()
Allows block parsers to be interrupted by other block parsers
|
boolean |
isParagraphParser() |
boolean |
isPropagatingLastBlankLine(BlockParser lastMatchedBlockParser)
should be overridden in BlockQuote, FencedCode and ListItem
|
boolean |
isRawText()
Allows block parsers to keep indenting spaces for those blocks that are interruptible but don't want indenting spaces removed.
|
void |
parseInlines(InlineParser inlineParser)
Do inline processing for the block content using the given inline parser interface
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseBlock, getBlock, tryContinuepublic boolean isClosed()
isClosed in interface BlockParserpublic boolean isContainer()
isContainer in interface BlockParserpublic boolean isInterruptible()
BlockParserisInterruptible in interface BlockParserpublic boolean isRawText()
BlockParserisRawText in interface BlockParserpublic boolean canContain(ParserState state, BlockParser blockParser, com.vladsch.flexmark.ast.Block block)
canContain in interface BlockParserstate - 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 cannotpublic boolean isParagraphParser()
isParagraphParser in interface BlockParserpublic boolean isPropagatingLastBlankLine(BlockParser lastMatchedBlockParser)
isPropagatingLastBlankLine in interface BlockParserlastMatchedBlockParser - the last matched block parser instancepublic com.vladsch.flexmark.ast.BlockContent getBlockContent()
getBlockContent in interface BlockParserParagraphParser or one that returns true for BlockParser.isParagraphParser()public void addLine(ParserState state, com.vladsch.flexmark.util.sequence.BasedSequence line)
BlockParseraddLine in interface BlockParserstate - parser stateline - line sequencepublic void parseInlines(InlineParser inlineParser)
BlockParserparseInlines in interface BlockParserinlineParser - instance of inline parserpublic boolean breakOutOnDoubleBlankLine()
breakOutOnDoubleBlankLine in interface BlockParserpublic final void finalizeClosedBlock()
BlockParserfinalizeClosedBlock in interface BlockParserpublic boolean canInterruptBy(BlockParserFactory blockParserFactory)
BlockParsercanInterruptBy in interface BlockParserblockParserFactory - interrupting block parserpublic com.vladsch.flexmark.util.options.MutableDataHolder getDataHolder()
getDataHolder in interface BlockParserAbstractBlockParserCopyright © 2018. All rights reserved.