Package org.commonmark.internal
Class DocumentParser.MatchedBlockParserImpl
- java.lang.Object
-
- org.commonmark.internal.DocumentParser.MatchedBlockParserImpl
-
- All Implemented Interfaces:
MatchedBlockParser
- Enclosing class:
- DocumentParser
private static class DocumentParser.MatchedBlockParserImpl extends java.lang.Object implements MatchedBlockParser
-
-
Field Summary
Fields Modifier and Type Field Description private BlockParser
matchedBlockParser
-
Constructor Summary
Constructors Constructor Description MatchedBlockParserImpl(BlockParser matchedBlockParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockParser
getMatchedBlockParser()
SourceLines
getParagraphLines()
Returns the current paragraph lines if the matched block is a paragraph.
-
-
-
Field Detail
-
matchedBlockParser
private final BlockParser matchedBlockParser
-
-
Constructor Detail
-
MatchedBlockParserImpl
public MatchedBlockParserImpl(BlockParser matchedBlockParser)
-
-
Method Detail
-
getMatchedBlockParser
public BlockParser getMatchedBlockParser()
- Specified by:
getMatchedBlockParser
in interfaceMatchedBlockParser
-
getParagraphLines
public SourceLines getParagraphLines()
Description copied from interface:MatchedBlockParser
Returns the current paragraph lines if the matched block is a paragraph.- Specified by:
getParagraphLines
in interfaceMatchedBlockParser
- Returns:
- paragraph content or an empty list
-
-