Class TocBlockParser
java.lang.Object
com.vladsch.flexmark.parser.block.AbstractBlockParser
com.vladsch.flexmark.ext.toc.internal.TocBlockParser
- All Implemented Interfaces:
BlockParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic class(package private) static class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTocBlockParser(DataHolder options, BasedSequence tocChars, BasedSequence styleChars) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLine(ParserState state, BasedSequence line) Add another line to the blockvoidcloseBlock(ParserState state) getBlock()voidparseInlines(InlineParser inlineParser) Do inline processing for the block content using the given inline parser interfacetryContinue(ParserState state) See if the block parser can continue parsing the current block
-
Field Details
-
block
-
-
Constructor Details
-
TocBlockParser
TocBlockParser(DataHolder options, BasedSequence tocChars, BasedSequence styleChars)
-
-
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
-
closeBlock
-
parseInlines
Description copied from interface:BlockParserDo inline processing for the block content using the given inline parser interface- Specified by:
parseInlinesin interfaceBlockParser- Overrides:
parseInlinesin classAbstractBlockParser- Parameters:
inlineParser- instance of inline parser
-