Class YamlFrontMatterBlockParser
java.lang.Object
com.vladsch.flexmark.parser.block.AbstractBlockParser
com.vladsch.flexmark.ext.yaml.front.matter.internal.YamlFrontMatterBlockParser
- All Implemented Interfaces:
BlockParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate YamlFrontMatterBlockprivate BlockContentprivate BasedSequenceprivate List<BasedSequence> private booleanprivate booleanprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLine(ParserState state, BasedSequence line) Add another line to the blockvoidcloseBlock(ParserState state) getBlock()booleanvoidparseInlines(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 blockMethods inherited from class AbstractBlockParser
breakOutOnDoubleBlankLine, canContain, canInterruptBy, finalizeClosedBlock, getBlockContent, getDataHolder, isClosed, isInterruptible, isParagraphParser, isPropagatingLastBlankLine, isRawText, removeBlankLines
-
Field Details
-
REGEX_METADATA
-
REGEX_METADATA_LIST
-
REGEX_METADATA_LITERAL
-
REGEX_BEGIN
-
REGEX_END
-
inYAMLBlock
private boolean inYAMLBlock -
inLiteral
private boolean inLiteral -
currentKey
-
currentValues
-
block
-
-
-
Constructor Details
-
YamlFrontMatterBlockParser
public YamlFrontMatterBlockParser()
-
-
Method Details
-
getBlock
- Returns:
- the block parser's block node instance
-
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.
-
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
-
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
-
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
-