Implementations should subclass AbstractBlockParser instead of implementing this directly.
| Modifier and Type | Method and Description |
|---|---|
| public void | addLine(ParserState
parser state state, BasedSequence line sequence line)Add another line to the block |
| public boolean | Returns: true if Double blank line should finalize this block parser and its children and reset to parent
|
| public boolean | canContain(ParserState
parser state state, BlockParser block parser blockParser, Block new block being started @return true if this block parser's block can contain the given block type, false if it cannot block)
|
| public boolean | Returns: true if can interrupt.interrupting block parser blockParserFactory)Allows block parsers to determine if they can be interrupted by other block parsers |
| public void | |
| public 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 |
| public Block | |
| public BlockContent | Returns: get the currently accumulated block content. May or may not be implemented by any parser except for theParagraphParser or one that returns true for isParagraphParser()
|
| public MutableDataHolder | Returns: the data holder for a block parser instance. Implemented byAbstractBlockParser
|
| public boolean | |
| public boolean | Returns: true if the block that is parsed is a container (contains other blocks), or false if it's a leaf.
|
| public boolean | Returns: true if block starts should be tried when this block parser is activeAllows block parsers to be interrupted by other block parsers |
| public boolean | |
| public boolean | Returns: true if the last blank line status should be propagated to parent blockslast matched block parser instance lastMatchedBlockParser)
|
| public boolean | Returns: true if block wants to keep indenting spacesAllows block parsers to keep indenting spaces for those blocks that are interruptible but don't want indenting spaces removed. |
| public void | parseInlines(InlineParser
instance of inline parser inlineParser)Do inline processing for the block content using the given inline parser interface |
| public BlockContinue | Returns: block continue instancecurrent parsing state state)See if the block parser can continue parsing the current block |
| addLine | back to summary |
|---|---|
| public void addLine(ParserState state, BasedSequence line) Add another line to the block
| |
| breakOutOnDoubleBlankLine | back to summary |
|---|---|
public boolean breakOutOnDoubleBlankLine()
| |
| canContain | back to summary |
|---|---|
public boolean canContain(ParserState state, BlockParser blockParser, Block block)
| |
| canInterruptBy | back to summary |
|---|---|
| public boolean canInterruptBy(BlockParserFactory blockParserFactory) Allows block parsers to determine if they can be interrupted by other block parsers
| |
| closeBlock | back to summary |
|---|---|
| public void closeBlock(ParserState state) | |
| finalizeClosedBlock | back to summary |
|---|---|
| public 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 | |
| getBlock | back to summary |
|---|---|
public Block getBlock()
| |
| getBlockContent | back to summary |
|---|---|
public BlockContent getBlockContent()
| |
| getDataHolder | back to summary |
|---|---|
public MutableDataHolder getDataHolder()
| |
| isClosed | back to summary |
|---|---|
public boolean isClosed()
| |
| isContainer | back to summary |
|---|---|
public boolean isContainer()
| |
| isInterruptible | back to summary |
|---|---|
| public boolean isInterruptible() Allows block parsers to be interrupted by other block parsers
| |
| isParagraphParser | back to summary |
|---|---|
public boolean isParagraphParser()
| |
| isPropagatingLastBlankLine | back to summary |
|---|---|
public boolean isPropagatingLastBlankLine(BlockParser lastMatchedBlockParser)
| |
| isRawText | back to summary |
|---|---|
| public boolean isRawText() Allows block parsers to keep indenting spaces for those blocks that are interruptible but don't want indenting spaces removed.
| |
| parseInlines | back to summary |
|---|---|
| public void parseInlines(InlineParser inlineParser) Do inline processing for the block content using the given inline parser interface
| |
| tryContinue | back to summary |
|---|---|
| public BlockContinue tryContinue(ParserState state) See if the block parser can continue parsing the current block
| |