Package com.vladsch.flexmark.parser.core
Class IndentedCodeBlockParser
- java.lang.Object
-
- com.vladsch.flexmark.parser.block.AbstractBlockParser
-
- com.vladsch.flexmark.parser.core.IndentedCodeBlockParser
-
- All Implemented Interfaces:
BlockParser
public class IndentedCodeBlockParser extends AbstractBlockParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndentedCodeBlockParser.BlockFactorystatic classIndentedCodeBlockParser.Factory
-
Field Summary
Fields Modifier and Type Field Description private IndentedCodeBlockblockprivate booleancodeContentBlockprivate BlockContentcontentprivate booleantrimTrailingBlankLines
-
Constructor Summary
Constructors Constructor Description IndentedCodeBlockParser(DataHolder options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLine(ParserState state, BasedSequence line)Add another line to the blockvoidcloseBlock(ParserState state)BlockgetBlock()BlockContinuetryContinue(ParserState state)See if the block parser can continue parsing the current block-
Methods inherited from class com.vladsch.flexmark.parser.block.AbstractBlockParser
breakOutOnDoubleBlankLine, canContain, canInterruptBy, finalizeClosedBlock, getBlockContent, getDataHolder, isClosed, isContainer, isInterruptible, isParagraphParser, isPropagatingLastBlankLine, isRawText, parseInlines, removeBlankLines
-
-
-
-
Field Detail
-
block
private final IndentedCodeBlock block
-
content
private BlockContent content
-
trimTrailingBlankLines
private final boolean trimTrailingBlankLines
-
codeContentBlock
private final boolean codeContentBlock
-
-
Constructor Detail
-
IndentedCodeBlockParser
public IndentedCodeBlockParser(DataHolder options)
-
-
Method Detail
-
getBlock
public Block getBlock()
- Returns:
- the block parser's block node instance
-
tryContinue
public BlockContinue tryContinue(ParserState state)
Description copied from interface:BlockParserSee if the block parser can continue parsing the current block- Parameters:
state- current parsing state- Returns:
- block continue instance
-
addLine
public void addLine(ParserState state, BasedSequence line)
Description copied from interface:BlockParserAdd another line to the block- Specified by:
addLinein interfaceBlockParser- Overrides:
addLinein classAbstractBlockParser- Parameters:
state- parser stateline- line sequence
-
closeBlock
public void closeBlock(ParserState state)
-
-