Top Fields Constructors Methods
jdk.internal.org.commonmark.internal

public Class DocumentBlockParser

extends AbstractBlockParser
Class Inheritance
Imports
jdk.internal.org.commonmark.node.Block, .Document, jdk.internal.org.commonmark.parser.SourceLine, jdk.internal.org.commonmark.parser.block.AbstractBlockParser, .BlockContinue, .ParserState

Field Summary

Modifier and TypeField and Description
private final Document

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 boolean
public Document
public boolean
isContainer()

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

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

Return true if the block that is parsed is a container (contains other blocks), or false if it's a leaf.

public BlockContinue
Inherited from jdk.internal.org.commonmark.parser.block.AbstractBlockParser:
addSourceSpancanHaveLazyContinuationLinescloseBlockparseInlines

Field Detail

documentback to summary
private final Document document

Constructor Detail

DocumentBlockParserback to summary
public DocumentBlockParser()

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
canContainback to summary
public boolean canContain(Block block)

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

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

Annotations
@Override
getBlockback to summary
public Document getBlock()

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

Annotations
@Override
isContainerback to summary
public boolean isContainer()

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

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

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

Return true if the block that is parsed is a container (contains other blocks), or false if it's a leaf.

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

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

Annotations
@Override