Class AsideBlockParser
java.lang.Object
com.vladsch.flexmark.parser.block.AbstractBlockParser
com.vladsch.flexmark.ext.aside.internal.AsideBlockParser
- All Implemented Interfaces:
BlockParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classprivate static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final AsideBlockprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate intstatic final charprivate final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanContain(ParserState state, BlockParser blockParser, Block block) voidcloseBlock(ParserState state) (package private) static booleanendsWithMarker(BasedSequence line) getBlock()boolean(package private) static booleanisMarker(ParserState state, int index, boolean inParagraph, boolean inParagraphListItem, boolean allowLeadingSpace, boolean interruptsParagraph, boolean interruptsItemParagraph, boolean withLeadSpacesInterruptsItemParagraph) 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
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
-
AsideBlockParser
-
-
Method Details
-
isContainer
public boolean isContainer()- Specified by:
isContainerin interfaceBlockParser- Overrides:
isContainerin 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: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
-
canContain
- Specified by:
canContainin interfaceBlockParser- Overrides:
canContainin 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:BlockParserSee 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) -
endsWithMarker
-