Class MatchedBlockParserImpl
- java.lang.Object
-
- com.vladsch.flexmark.parser.internal.MatchedBlockParserImpl
-
- All Implemented Interfaces:
MatchedBlockParser
public class MatchedBlockParserImpl extends java.lang.Object implements MatchedBlockParser
-
-
Constructor Summary
Constructors Constructor Description MatchedBlockParserImpl(BlockParser matchedBlockParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockParser
getBlockParser()
BasedSequence
getParagraphContent()
Returns the current content of the paragraph if the matched block is a paragraph.MutableDataHolder
getParagraphDataHolder()
java.util.List<java.lang.Integer>
getParagraphEolLengths()
java.util.List<BasedSequence>
getParagraphLines()
-
-
-
Constructor Detail
-
MatchedBlockParserImpl
public MatchedBlockParserImpl(BlockParser matchedBlockParser)
-
-
Method Detail
-
getParagraphLines
public java.util.List<BasedSequence> getParagraphLines()
- Specified by:
getParagraphLines
in interfaceMatchedBlockParser
-
getParagraphEolLengths
public java.util.List<java.lang.Integer> getParagraphEolLengths()
- Specified by:
getParagraphEolLengths
in interfaceMatchedBlockParser
-
getBlockParser
public BlockParser getBlockParser()
- Specified by:
getBlockParser
in interfaceMatchedBlockParser
- Returns:
- current matched block parser instance
-
getParagraphContent
public BasedSequence getParagraphContent()
Description copied from interface:MatchedBlockParser
Returns the current content of the paragraph if the matched block is a paragraph. The content can be multiple lines separated by'\n'
.- Specified by:
getParagraphContent
in interfaceMatchedBlockParser
- Returns:
- paragraph content or
null
-
getParagraphDataHolder
public MutableDataHolder getParagraphDataHolder()
- Specified by:
getParagraphDataHolder
in interfaceMatchedBlockParser
-
-