
com.vladsch.flexmark.parser.block.MatchedBlockParser Maven / Gradle / Ivy
package com.vladsch.flexmark.parser.block;
import com.vladsch.flexmark.util.data.MutableDataHolder;
import com.vladsch.flexmark.util.sequence.BasedSequence;
import java.util.List;
/**
* Open block parser that was last matched during the continue phase. This is different from the currently active
* block parser, as an unmatched block is only closed when a new block is started.
* This interface is not intended to be implemented by clients.
*/
public interface MatchedBlockParser {
/**
* @return current matched block parser instance
*/
BlockParser getBlockParser();
/**
* Returns the current content of the paragraph if the matched block is a paragraph. The content can be multiple
* lines separated by {@code '\n'}.
*
* @return paragraph content or {@code null}
*/
BasedSequence getParagraphContent();
List getParagraphLines();
List getParagraphEolLengths();
MutableDataHolder getParagraphDataHolder();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy