mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-03 19:18:54 +01:00
38 lines
1.3 KiB
Java
38 lines
1.3 KiB
Java
package org.commonmark.internal;
|
|
|
|
import org.commonmark.node.Block;
|
|
import org.commonmark.node.Document;
|
|
import org.commonmark.parser.SourceLine;
|
|
import org.commonmark.parser.block.AbstractBlockParser;
|
|
import org.commonmark.parser.block.BlockContinue;
|
|
import org.commonmark.parser.block.ParserState;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes11.dex */
|
|
public class DocumentBlockParser extends AbstractBlockParser {
|
|
private final Document document = new Document();
|
|
|
|
@Override // org.commonmark.parser.block.AbstractBlockParser, org.commonmark.parser.block.BlockParser
|
|
public boolean canContain(Block block) {
|
|
return true;
|
|
}
|
|
|
|
@Override // org.commonmark.parser.block.AbstractBlockParser, org.commonmark.parser.block.BlockParser
|
|
public boolean isContainer() {
|
|
return true;
|
|
}
|
|
|
|
@Override // org.commonmark.parser.block.BlockParser
|
|
public BlockContinue tryContinue(ParserState parserState) {
|
|
return BlockContinue.atIndex(parserState.getIndex());
|
|
}
|
|
|
|
@Override // org.commonmark.parser.block.BlockParser
|
|
public Document getBlock() {
|
|
return this.document;
|
|
}
|
|
|
|
@Override // org.commonmark.parser.block.AbstractBlockParser, org.commonmark.parser.block.BlockParser
|
|
public void addLine(SourceLine sourceLine) {
|
|
}
|
|
}
|