Class JekyllFrontMatterBlockParser
- java.lang.Object
-
- com.vladsch.flexmark.parser.block.AbstractBlockParser
-
- com.vladsch.flexmark.ext.jekyll.front.matter.internal.JekyllFrontMatterBlockParser
-
- All Implemented Interfaces:
BlockParser
public class JekyllFrontMatterBlockParser extends AbstractBlockParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
JekyllFrontMatterBlockParser.BlockFactory
static class
JekyllFrontMatterBlockParser.Factory
-
Field Summary
Fields Modifier and Type Field Description private JekyllFrontMatterBlock
block
private BlockContent
content
private boolean
inYAMLBlock
(package private) static java.util.regex.Pattern
JEKYLL_FRONT_MATTER_BLOCK_END
(package private) static java.util.regex.Pattern
JEKYLL_FRONT_MATTER_BLOCK_START
-
Constructor Summary
Constructors Constructor Description JekyllFrontMatterBlockParser(DataHolder options, BasedSequence openingMarker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLine(ParserState state, BasedSequence line)
Add another line to the blockvoid
closeBlock(ParserState state)
Block
getBlock()
void
parseInlines(InlineParser inlineParser)
Do inline processing for the block content using the given inline parser interfaceBlockContinue
tryContinue(ParserState state)
See if the block parser can continue parsing the current block-
Methods inherited from class com.vladsch.flexmark.parser.block.AbstractBlockParser
breakOutOnDoubleBlankLine, canContain, canInterruptBy, finalizeClosedBlock, getBlockContent, getDataHolder, isClosed, isContainer, isInterruptible, isParagraphParser, isPropagatingLastBlankLine, isRawText, removeBlankLines
-
-
-
-
Field Detail
-
JEKYLL_FRONT_MATTER_BLOCK_START
static final java.util.regex.Pattern JEKYLL_FRONT_MATTER_BLOCK_START
-
JEKYLL_FRONT_MATTER_BLOCK_END
static final java.util.regex.Pattern JEKYLL_FRONT_MATTER_BLOCK_END
-
block
private final JekyllFrontMatterBlock block
-
content
private BlockContent content
-
inYAMLBlock
private boolean inYAMLBlock
-
-
Constructor Detail
-
JekyllFrontMatterBlockParser
JekyllFrontMatterBlockParser(DataHolder options, BasedSequence openingMarker)
-
-
Method Detail
-
getBlock
public Block getBlock()
- Returns:
- the block parser's block node instance
-
tryContinue
public BlockContinue tryContinue(ParserState state)
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
-
addLine
public void addLine(ParserState state, BasedSequence line)
Description copied from interface:BlockParser
Add another line to the block- Specified by:
addLine
in interfaceBlockParser
- Overrides:
addLine
in classAbstractBlockParser
- Parameters:
state
- parser stateline
- line sequence
-
closeBlock
public void closeBlock(ParserState state)
-
parseInlines
public void parseInlines(InlineParser inlineParser)
Description copied from interface:BlockParser
Do inline processing for the block content using the given inline parser interface- Specified by:
parseInlines
in interfaceBlockParser
- Overrides:
parseInlines
in classAbstractBlockParser
- Parameters:
inlineParser
- instance of inline parser
-
-