Package com.vladsch.flexmark.parser.core
Class ParagraphParser
java.lang.Object
com.vladsch.flexmark.parser.block.AbstractBlockParser
com.vladsch.flexmark.parser.core.ParagraphParser
- All Implemented Interfaces:
BlockParser
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLine
(ParserState state, BasedSequence line) Add another line to the blockvoid
closeBlock
(ParserState state) getBlock()
boolean
Allows block parsers to be interrupted by other block parsersboolean
void
parseInlines
(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 com.vladsch.flexmark.parser.block.AbstractBlockParser
breakOutOnDoubleBlankLine, canContain, canInterruptBy, finalizeClosedBlock, getDataHolder, isClosed, isContainer, isPropagatingLastBlankLine, isRawText, removeBlankLines
-
Field Details
-
block
-
-
-
Constructor Details
-
ParagraphParser
public ParagraphParser()
-
-
Method Details
-
getBlockContent
- Specified by:
getBlockContent
in interfaceBlockParser
- Overrides:
getBlockContent
in classAbstractBlockParser
- Returns:
- get the currently accumulated block content. May or may not be implemented by any parser except for the
ParagraphParser
or one that returns true forBlockParser.isParagraphParser()
-
getBlock
- Returns:
- the block parser's block node instance
-
tryContinue
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
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
-
isParagraphParser
public boolean isParagraphParser()- Specified by:
isParagraphParser
in interfaceBlockParser
- Overrides:
isParagraphParser
in classAbstractBlockParser
- Returns:
- true if this block parser is the paragraph block parser
-
isInterruptible
public boolean isInterruptible()Description copied from interface:BlockParser
Allows block parsers to be interrupted by other block parsers- Specified by:
isInterruptible
in interfaceBlockParser
- Overrides:
isInterruptible
in classAbstractBlockParser
- Returns:
- true if block starts should be tried when this block parser is active
-
closeBlock
-
parseInlines
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
-