public class DocumentBlockParser extends AbstractBlockParser
Constructor and Description |
---|
DocumentBlockParser() |
Modifier and Type | Method and Description |
---|---|
void |
addLine(ParserState state,
BasedSequence line)
Add another line to the block
|
boolean |
canContain(ParserState state,
BlockParser blockParser,
Block block) |
void |
closeBlock(ParserState state) |
Document |
getBlock() |
void |
initializeDocument(DataHolder options,
BasedSequence charSequence) |
boolean |
isContainer() |
BlockContinue |
tryContinue(ParserState state)
See if the block parser can continue parsing the current block
|
breakOutOnDoubleBlankLine, canInterruptBy, finalizeClosedBlock, getBlockContent, getDataHolder, isClosed, isInterruptible, isParagraphParser, isPropagatingLastBlankLine, isRawText, parseInlines
public void initializeDocument(DataHolder options, BasedSequence charSequence)
public boolean isContainer()
isContainer
in interface BlockParser
isContainer
in class AbstractBlockParser
public boolean canContain(ParserState state, BlockParser blockParser, Block block)
canContain
in interface BlockParser
canContain
in class AbstractBlockParser
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 cannotpublic Document getBlock()
public BlockContinue tryContinue(ParserState state)
BlockParser
state
- current parsing statepublic void addLine(ParserState state, BasedSequence line)
BlockParser
addLine
in interface BlockParser
addLine
in class AbstractBlockParser
state
- parser stateline
- line sequencepublic void closeBlock(ParserState state)
Copyright © 2018. All rights reserved.