com.vladsch.flexmark.ast.ListBlock 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.ast;
import com.vladsch.flexmark.util.ast.BlankLineContainer;
import com.vladsch.flexmark.util.ast.Block;
import com.vladsch.flexmark.util.ast.BlockContent;
import com.vladsch.flexmark.util.ast.Node;
import com.vladsch.flexmark.util.sequence.BasedSequence;
import org.jetbrains.annotations.NotNull;
import java.util.List;
public abstract class ListBlock extends Block implements BlankLineContainer {
private boolean tight;
public ListBlock() {
}
public ListBlock(BasedSequence chars) {
super(chars);
}
public ListBlock(BasedSequence chars, List segments) {
super(chars, segments);
}
public ListBlock(BlockContent blockContent) {
super(blockContent);
}
public boolean isTight() {
return tight;
}
public boolean isLoose() {
return !tight;
}
public void setTight(boolean tight) {
this.tight = tight;
}
public void setLoose(boolean loose) {
this.tight = !loose;
}
@Override
public Node getLastBlankLineChild() {
return getLastChild();
}
@Override
public void getAstExtra(@NotNull StringBuilder out) {
super.getAstExtra(out);
if (isTight()) out.append(" isTight");
else out.append(" isLoose");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy