Package com.vladsch.flexmark.parser.core
Class BlockQuoteParser
java.lang.Object
com.vladsch.flexmark.parser.block.AbstractBlockParser
com.vladsch.flexmark.parser.core.BlockQuoteParser
- All Implemented Interfaces:
BlockParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
(package private) static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final BlockQuote
private final boolean
private final boolean
private final boolean
private final boolean
private int
static final char
private final boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canContain
(ParserState state, BlockParser blockParser, Block block) void
closeBlock
(ParserState state) getBlock()
boolean
(package private) static boolean
isMarker
(ParserState state, int index, boolean inParagraph, boolean inParagraphListItem, boolean allowLeadingSpace, boolean interruptsParagraph, boolean interruptsItemParagraph, boolean withLeadSpacesInterruptsItemParagraph) boolean
isPropagatingLastBlankLine
(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 com.vladsch.flexmark.parser.block.AbstractBlockParser
addLine, breakOutOnDoubleBlankLine, canInterruptBy, finalizeClosedBlock, getBlockContent, getDataHolder, isClosed, isInterruptible, isParagraphParser, isRawText, parseInlines, removeBlankLines
-
Field Details
-
MARKER_CHAR
public static final char MARKER_CHAR- See Also:
-
block
-
allowLeadingSpace
private final boolean allowLeadingSpace -
continueToBlankLine
private final boolean continueToBlankLine -
ignoreBlankLine
private final boolean ignoreBlankLine -
interruptsParagraph
private final boolean interruptsParagraph -
interruptsItemParagraph
private final boolean interruptsItemParagraph -
withLeadSpacesInterruptsItemParagraph
private final boolean withLeadSpacesInterruptsItemParagraph -
lastWasBlankLine
private int lastWasBlankLine
-
-
Constructor Details
-
BlockQuoteParser
-
-
Method Details
-
isContainer
public boolean isContainer()- Specified by:
isContainer
in interfaceBlockParser
- Overrides:
isContainer
in classAbstractBlockParser
- Returns:
- true if the block that is parsed is a container (contains other blocks), or false if it's a leaf.
-
isPropagatingLastBlankLine
Description copied from class:AbstractBlockParser
should be overridden in BlockQuote, FencedCode and ListItem- Specified by:
isPropagatingLastBlankLine
in interfaceBlockParser
- Overrides:
isPropagatingLastBlankLine
in classAbstractBlockParser
- Parameters:
lastMatchedBlockParser
- the last matched block parser instance- Returns:
- true if the blank line should be propagated to parent
-
canContain
- Specified by:
canContain
in interfaceBlockParser
- Overrides:
canContain
in classAbstractBlockParser
- Parameters:
state
- parser stateblockParser
- block parserblock
- new block being started @return true if this block parser's block can contain the given block type, false if it cannot
-
getBlock
- Returns:
- the block parser's block node instance
-
closeBlock
-
tryContinue
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
-
isMarker
static boolean isMarker(ParserState state, int index, boolean inParagraph, boolean inParagraphListItem, boolean allowLeadingSpace, boolean interruptsParagraph, boolean interruptsItemParagraph, boolean withLeadSpacesInterruptsItemParagraph)
-