com.vladsch.flexmark.util.ast.Block Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of driver-cql-shaded Show documentation
Show all versions of driver-cql-shaded Show documentation
A Shaded CQL ActivityType driver for http://nosqlbench.io/
package com.vladsch.flexmark.util.ast;
import com.vladsch.flexmark.util.sequence.BasedSequence;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.List;
public abstract class Block extends ContentNode {
public Block() {
}
public Block(@NotNull BasedSequence chars) {
super(chars);
}
public Block(@NotNull BasedSequence chars, @NotNull List lineSegments) {
super(chars, lineSegments);
}
public Block(@NotNull List lineSegments) {
super(lineSegments);
}
public Block(BlockContent blockContent) {
super(blockContent);
}
@Nullable
public Block getParent() {
return (Block) super.getParent();
}
@Override
protected void setParent(@Nullable Node parent) {
if (parent != null && !(parent instanceof Block)) {
throw new IllegalArgumentException("Parent of block must also be block (can not be inline)");
}
super.setParent(parent);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy