org.pkl.thirdparty.commonmark.node.Block 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.node;
/**
* Block nodes such as paragraphs, list blocks, code blocks etc.
*/
public abstract class Block extends Node {
public Block getParent() {
return (Block) super.getParent();
}
@Override
protected void setParent(Node parent) {
if (!(parent instanceof Block)) {
throw new IllegalArgumentException("Parent of block must also be block (can not be inline)");
}
super.setParent(parent);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy