Package org.commonmark.internal
Class IndentedCodeBlockParser
java.lang.Object
org.commonmark.parser.block.AbstractBlockParser
org.commonmark.internal.IndentedCodeBlockParser
- All Implemented Interfaces:
BlockParser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IndentedCodeBlock
private final List
<CharSequence> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLine
(SourceLine line) Add the part of a line that belongs to this block parser to parse (i.e.void
getBlock()
tryContinue
(ParserState state) Methods inherited from class org.commonmark.parser.block.AbstractBlockParser
addSourceSpan, canContain, canHaveLazyContinuationLines, isContainer, parseInlines
-
Field Details
-
block
-
lines
-
-
Constructor Details
-
IndentedCodeBlockParser
public IndentedCodeBlockParser()
-
-
Method Details
-
getBlock
-
tryContinue
-
addLine
Description copied from interface:BlockParser
Add the part of a line that belongs to this block parser to parse (i.e. without any container block markers). Note that the line will only include aSourceLine.getSourceSpan()
if source spans are enabled for inlines.- Specified by:
addLine
in interfaceBlockParser
- Overrides:
addLine
in classAbstractBlockParser
-
closeBlock
public void closeBlock()- Specified by:
closeBlock
in interfaceBlockParser
- Overrides:
closeBlock
in classAbstractBlockParser
-