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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IndentedCodeBlock
private final boolean
private BlockContent
private final boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLine
(ParserState state, BasedSequence line) Add another line to the blockvoid
closeBlock
(ParserState state) getBlock()
tryContinue
(ParserState state) See if the block parser can continue parsing the current blockMethods inherited from class com.vladsch.flexmark.parser.block.AbstractBlockParser
breakOutOnDoubleBlankLine, canContain, canInterruptBy, finalizeClosedBlock, getBlockContent, getDataHolder, isClosed, isContainer, isInterruptible, isParagraphParser, isPropagatingLastBlankLine, isRawText, parseInlines, removeBlankLines
-
Field Details
-
block
-
-
trimTrailingBlankLines
private final boolean trimTrailingBlankLines -
codeContentBlock
private final boolean codeContentBlock
-
-
Constructor Details
-
IndentedCodeBlockParser
-
-
Method Details
-
getBlock
- Returns:
- the block parser's block node instance
-
tryContinue
Description copied from interface:BlockParser
See if the block parser can continue parsing the current block- Parameters:
state
- current parsing state- Returns:
- block continue instance
-
addLine
Description copied from interface:BlockParser
Add another line to the block- Specified by:
addLine
in interfaceBlockParser
- Overrides:
addLine
in classAbstractBlockParser
- Parameters:
state
- parser stateline
- line sequence
-
closeBlock
-