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 BlockParsermatchedBlockParser
-
Constructor Summary
Constructors Constructor Description MatchedBlockParserImpl(BlockParser matchedBlockParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockParsergetMatchedBlockParser()SourceLinesgetParagraphLines()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:
getMatchedBlockParserin interfaceMatchedBlockParser
-
getParagraphLines
public SourceLines getParagraphLines()
Description copied from interface:MatchedBlockParserReturns the current paragraph lines if the matched block is a paragraph.- Specified by:
getParagraphLinesin interfaceMatchedBlockParser- Returns:
- paragraph content or an empty list
-
-