Package com.vladsch.flexmark.parser.core
Class ThematicBreakParser
- java.lang.Object
-
- com.vladsch.flexmark.parser.block.AbstractBlockParser
-
- com.vladsch.flexmark.parser.core.ThematicBreakParser
-
- All Implemented Interfaces:
BlockParser
public class ThematicBreakParser extends AbstractBlockParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ThematicBreakParser.BlockFactory
static class
ThematicBreakParser.Factory
(package private) static class
ThematicBreakParser.ThematicBreakOptions
-
Field Summary
Fields Modifier and Type Field Description private ThematicBreak
block
(package private) static java.util.regex.Pattern
PATTERN
-
Constructor Summary
Constructors Constructor Description ThematicBreakParser(BasedSequence line)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeBlock(ParserState state)
Block
getBlock()
BlockContinue
tryContinue(ParserState state)
See if the block parser can continue parsing the current block-
Methods inherited from class com.vladsch.flexmark.parser.block.AbstractBlockParser
addLine, breakOutOnDoubleBlankLine, canContain, canInterruptBy, finalizeClosedBlock, getBlockContent, getDataHolder, isClosed, isContainer, isInterruptible, isParagraphParser, isPropagatingLastBlankLine, isRawText, parseInlines, removeBlankLines
-
-
-
-
Field Detail
-
PATTERN
static java.util.regex.Pattern PATTERN
-
block
private final ThematicBreak block
-
-
Constructor Detail
-
ThematicBreakParser
public ThematicBreakParser(BasedSequence line)
-
-
Method Detail
-
getBlock
public Block getBlock()
- Returns:
- the block parser's block node instance
-
closeBlock
public void closeBlock(ParserState state)
-
tryContinue
public BlockContinue tryContinue(ParserState state)
Description copied from interface:BlockParser
See if the block parser can continue parsing the current block- Parameters:
state
- current parsing state- Returns:
- block continue instance
-
-