Class FootnoteBlockParser
java.lang.Object
com.vladsch.flexmark.parser.block.AbstractBlockParser
com.vladsch.flexmark.ext.footnotes.internal.FootnoteBlockParser
- All Implemented Interfaces:
BlockParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FootnoteBlockprivate BlockContentprivate final int(package private) static Pattern(package private) static String(package private) static Patternprivate final FootnoteOptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLine(ParserState state, BasedSequence line) Add another line to the blockbooleancanContain(ParserState state, BlockParser blockParser, Block block) voidcloseBlock(ParserState state) getBlock()booleantryContinue(ParserState state) See if the block parser can continue parsing the current blockMethods inherited from class AbstractBlockParser
breakOutOnDoubleBlankLine, canInterruptBy, finalizeClosedBlock, getDataHolder, isClosed, isInterruptible, isParagraphParser, isPropagatingLastBlankLine, isRawText, parseInlines, removeBlankLines
-
Field Details
-
FOOTNOTE_ID
-
FOOTNOTE_ID_PATTERN
-
FOOTNOTE_DEF_PATTERN
-
block
-
options
-
contentOffset
private final int contentOffset -
-
-
Constructor Details
-
FootnoteBlockParser
-
-
Method Details
-
getBlockContent
- Specified by:
getBlockContentin interfaceBlockParser- Overrides:
getBlockContentin classAbstractBlockParser- Returns:
- get the currently accumulated block content. May or may not be implemented by any parser except for the
ParagraphParseror one that returns true forBlockParser.isParagraphParser()
-
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
-
closeBlock
-
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.
-
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
-