blob: e6f25e8b1b6ad99aa43fee21a8635488e956f721 [file] [log] [blame]
package org.checkerframework.dataflow.cfg.block;
public class SpecialBlockImpl extends SingleSuccessorBlockImpl implements SpecialBlock {
/** The type of this special basic block. */
protected SpecialBlockType specialType;
public SpecialBlockImpl(SpecialBlockType type) {
this.specialType = type;
this.type = BlockType.SPECIAL_BLOCK;
}
@Override
public SpecialBlockType getSpecialType() {
return specialType;
}
@Override
public String toString() {
return "SpecialBlock(" + specialType + ")";
}
}