Class MatchedBlockParserImpl
- java.lang.Object
-
- com.vladsch.flexmark.parser.internal.MatchedBlockParserImpl
-
- All Implemented Interfaces:
MatchedBlockParser
public class 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 BlockParsergetBlockParser()BasedSequencegetParagraphContent()Returns the current content of the paragraph if the matched block is a paragraph.MutableDataHoldergetParagraphDataHolder()java.util.List<java.lang.Integer>getParagraphEolLengths()java.util.List<BasedSequence>getParagraphLines()
-
-
-
Field Detail
-
matchedBlockParser
private final BlockParser matchedBlockParser
-
-
Constructor Detail
-
MatchedBlockParserImpl
public MatchedBlockParserImpl(BlockParser matchedBlockParser)
-
-
Method Detail
-
getParagraphLines
public java.util.List<BasedSequence> getParagraphLines()
- Specified by:
getParagraphLinesin interfaceMatchedBlockParser
-
getParagraphEolLengths
public java.util.List<java.lang.Integer> getParagraphEolLengths()
- Specified by:
getParagraphEolLengthsin interfaceMatchedBlockParser
-
getBlockParser
public BlockParser getBlockParser()
- Specified by:
getBlockParserin interfaceMatchedBlockParser- Returns:
- current matched block parser instance
-
getParagraphContent
public BasedSequence getParagraphContent()
Description copied from interface:MatchedBlockParserReturns the current content of the paragraph if the matched block is a paragraph. The content can be multiple lines separated by'\n'.- Specified by:
getParagraphContentin interfaceMatchedBlockParser- Returns:
- paragraph content or
null
-
getParagraphDataHolder
public MutableDataHolder getParagraphDataHolder()
- Specified by:
getParagraphDataHolderin interfaceMatchedBlockParser
-
-