APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.org.commonmark.internal

public Class ParagraphParser

extends AbstractBlockParser
Class Inheritance
Imports
jdk.internal.org.commonmark.node.Block, .LinkReferenceDefinition, .Paragraph, .SourceSpan, jdk.internal.org.commonmark.parser.InlineParser, .SourceLine, .SourceLines, jdk.internal.org.commonmark.parser.block.AbstractBlockParser, .BlockContinue, .ParserState, java.util.List

Field Summary

Modifier and TypeField and Description
private final Paragraph
private final LinkReferenceDefinitionParser

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addLine(SourceLine line)

Overrides jdk.internal.org.commonmark.parser.block.AbstractBlockParser.addLine.

Implements jdk.internal.org.commonmark.parser.block.BlockParser.addLine.

Add the part of a line that belongs to this block parser to parse (i.e. without any container block markers).

public void
public boolean
public void
public Block
public List<LinkReferenceDefinition>
public SourceLines
public void
public BlockContinue
Inherited from jdk.internal.org.commonmark.parser.block.AbstractBlockParser:
canContainisContainer

Field Detail

blockback to summary
private final Paragraph block
linkReferenceDefinitionParserback to summary
private final LinkReferenceDefinitionParser linkReferenceDefinitionParser

Constructor Detail

ParagraphParserback to summary
public ParagraphParser()

Method Detail

addLineback to summary
public void addLine(SourceLine line)

Overrides jdk.internal.org.commonmark.parser.block.AbstractBlockParser.addLine.

Implements jdk.internal.org.commonmark.parser.block.BlockParser.addLine.

Doc from jdk.internal.org.commonmark.parser.block.BlockParser.addLine.

Add the part of a line that belongs to this block parser to parse (i.e. without any container block markers). Note that the line will only include a SourceLine#getSourceSpan() if source spans are enabled for inlines.

Annotations
@Override
addSourceSpanback to summary
public void addSourceSpan(SourceSpan sourceSpan)

Overrides jdk.internal.org.commonmark.parser.block.AbstractBlockParser.addSourceSpan.

Implements jdk.internal.org.commonmark.parser.block.BlockParser.addSourceSpan.

Doc from jdk.internal.org.commonmark.parser.block.BlockParser.addSourceSpan.

Add a source span of the currently parsed block. The default implementation in AbstractBlockParser adds it to the block. Unless you have some complicated parsing where you need to check source positions, you don't need to override this.

Annotations
@Override
canHaveLazyContinuationLinesback to summary
public boolean canHaveLazyContinuationLines()

Overrides jdk.internal.org.commonmark.parser.block.AbstractBlockParser.canHaveLazyContinuationLines.

Implements jdk.internal.org.commonmark.parser.block.BlockParser.canHaveLazyContinuationLines.

Doc from jdk.internal.org.commonmark.parser.block.BlockParser.canHaveLazyContinuationLines.

Return true if the block can have lazy continuation lines.

Lazy continuation lines are lines that were rejected by this tryContinue(ParserState) but didn't match any other block parsers either.

If true is returned here, those lines will get added via addLine(SourceLine). For false, the block is closed instead.

Annotations
@Override
closeBlockback to summary
public void closeBlock()

Overrides jdk.internal.org.commonmark.parser.block.AbstractBlockParser.closeBlock.

Implements jdk.internal.org.commonmark.parser.block.BlockParser.closeBlock.

Annotations
@Override
getBlockback to summary
public Block getBlock()

Implements jdk.internal.org.commonmark.parser.block.BlockParser.getBlock.

Annotations
@Override
getDefinitionsback to summary
public List<LinkReferenceDefinition> getDefinitions()
getParagraphLinesback to summary
public SourceLines getParagraphLines()
parseInlinesback to summary
public void parseInlines(InlineParser inlineParser)

Overrides jdk.internal.org.commonmark.parser.block.AbstractBlockParser.parseInlines.

Implements jdk.internal.org.commonmark.parser.block.BlockParser.parseInlines.

Annotations
@Override
tryContinueback to summary
public BlockContinue tryContinue(ParserState state)

Implements jdk.internal.org.commonmark.parser.block.BlockParser.tryContinue.

Annotations
@Override