org.pkl.thirdparty.commonmark.internal.DocumentBlockParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pkl-tools Show documentation
Show all versions of pkl-tools Show documentation
Fat Jar containing pkl-cli, pkl-codegen-java, pkl-codegen-kotlin, pkl-config-java, pkl-core, pkl-doc, and their shaded third-party dependencies.
package org.pkl.thirdparty.commonmark.internal;
import org.pkl.thirdparty.commonmark.node.Block;
import org.pkl.thirdparty.commonmark.node.Document;
import org.pkl.thirdparty.commonmark.parser.SourceLine;
import org.pkl.thirdparty.commonmark.parser.block.AbstractBlockParser;
import org.pkl.thirdparty.commonmark.parser.block.BlockContinue;
import org.pkl.thirdparty.commonmark.parser.block.ParserState;
public class DocumentBlockParser extends AbstractBlockParser {
private final Document document = new Document();
@Override
public boolean isContainer() {
return true;
}
@Override
public boolean canContain(Block block) {
return true;
}
@Override
public Document getBlock() {
return document;
}
@Override
public BlockContinue tryContinue(ParserState state) {
return BlockContinue.atIndex(state.getIndex());
}
@Override
public void addLine(SourceLine line) {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy