public class FencedCodeBlockParser extends AbstractBlockParser
| Modifier and Type | Class and Description |
|---|---|
static class |
FencedCodeBlockParser.Factory |
| Constructor and Description |
|---|
FencedCodeBlockParser(com.vladsch.flexmark.util.options.DataHolder options,
char fenceChar,
int fenceLength,
int fenceIndent,
int fenceMarkerIndent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLine(ParserState state,
com.vladsch.flexmark.util.sequence.BasedSequence line)
Add another line to the block
|
void |
closeBlock(ParserState state) |
com.vladsch.flexmark.ast.Block |
getBlock() |
int |
getFenceIndent() |
int |
getFenceMarkerIndent() |
boolean |
isPropagatingLastBlankLine(BlockParser lastMatchedBlockParser)
should be overridden in BlockQuote, FencedCode and ListItem
|
BlockContinue |
tryContinue(ParserState state)
See if the block parser can continue parsing the current block
|
breakOutOnDoubleBlankLine, canContain, canInterruptBy, finalizeClosedBlock, getBlockContent, getDataHolder, isClosed, isContainer, isInterruptible, isParagraphParser, isRawText, parseInlinespublic FencedCodeBlockParser(com.vladsch.flexmark.util.options.DataHolder options,
char fenceChar,
int fenceLength,
int fenceIndent,
int fenceMarkerIndent)
public com.vladsch.flexmark.ast.Block getBlock()
public int getFenceIndent()
public int getFenceMarkerIndent()
public BlockContinue tryContinue(ParserState state)
BlockParserstate - current parsing statepublic void addLine(ParserState state, com.vladsch.flexmark.util.sequence.BasedSequence line)
BlockParseraddLine in interface BlockParseraddLine in class AbstractBlockParserstate - parser stateline - line sequencepublic boolean isPropagatingLastBlankLine(BlockParser lastMatchedBlockParser)
AbstractBlockParserisPropagatingLastBlankLine in interface BlockParserisPropagatingLastBlankLine in class AbstractBlockParserlastMatchedBlockParser - the last matched block parser instancepublic void closeBlock(ParserState state)
Copyright © 2018. All rights reserved.