Class SpecExampleBlockParser
java.lang.Object
com.vladsch.flexmark.parser.block.AbstractBlockParser
com.vladsch.flexmark.ext.spec.example.internal.SpecExampleBlockParser
- All Implemented Interfaces:
BlockParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final SpecExampleBlockprivate BlockContentprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final SpecExampleOptionsprivate static final Pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLine(ParserState state, BasedSequence line) Add another line to the blockvoidcloseBlock(ParserState state) getBlock()booleanisPropagatingLastBlankLine(BlockParser lastMatchedBlockParser) should be overridden in BlockQuote, FencedCode and ListItemtryContinue(ParserState state) See if the block parser can continue parsing the current blockMethods inherited from class AbstractBlockParser
breakOutOnDoubleBlankLine, canContain, canInterruptBy, finalizeClosedBlock, getBlockContent, getDataHolder, isClosed, isContainer, isInterruptible, isParagraphParser, isRawText, parseInlines, removeBlankLines
-
Field Details
-
OPTIONS_PATTERN
-
GROUP_COORD_OPEN
private static final int GROUP_COORD_OPEN- See Also:
-
GROUP_SECTION
private static final int GROUP_SECTION- See Also:
-
GROUP_NUMBER_SEPARATOR
private static final int GROUP_NUMBER_SEPARATOR- See Also:
-
GROUP_NUMBER
private static final int GROUP_NUMBER- See Also:
-
GROUP_COORD_CLOSE
private static final int GROUP_COORD_CLOSE- See Also:
-
GROUP_OPTION_KEYWORD
private static final int GROUP_OPTION_KEYWORD- See Also:
-
GROUP_OPTIONS_OPEN
private static final int GROUP_OPTIONS_OPEN- See Also:
-
GROUP_OPTIONS
private static final int GROUP_OPTIONS- See Also:
-
GROUP_OPTIONS_CLOSE
private static final int GROUP_OPTIONS_CLOSE- See Also:
-
block
-
-
myOptions
-
-
Constructor Details
-
SpecExampleBlockParser
-
-
Method Details
-
getBlock
- Returns:
- the block parser's block node instance
-
tryContinue
Description copied from interface:BlockParserSee if the block parser can continue parsing the current block- Parameters:
state- current parsing state- Returns:
- block continue instance
-
addLine
Description copied from interface:BlockParserAdd another line to the block- Specified by:
addLinein interfaceBlockParser- Overrides:
addLinein classAbstractBlockParser- Parameters:
state- parser stateline- line sequence
-
isPropagatingLastBlankLine
Description copied from class:AbstractBlockParsershould be overridden in BlockQuote, FencedCode and ListItem- Specified by:
isPropagatingLastBlankLinein interfaceBlockParser- Overrides:
isPropagatingLastBlankLinein classAbstractBlockParser- Parameters:
lastMatchedBlockParser- the last matched block parser instance- Returns:
- true if the blank line should be propagated to parent
-
closeBlock
-