aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/checker_framework_dataflow/java/org/checkerframework/dataflow/cfg/block/SpecialBlockImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/checker_framework_dataflow/java/org/checkerframework/dataflow/cfg/block/SpecialBlockImpl.java')
-rw-r--r--third_party/checker_framework_dataflow/java/org/checkerframework/dataflow/cfg/block/SpecialBlockImpl.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/third_party/checker_framework_dataflow/java/org/checkerframework/dataflow/cfg/block/SpecialBlockImpl.java b/third_party/checker_framework_dataflow/java/org/checkerframework/dataflow/cfg/block/SpecialBlockImpl.java
new file mode 100644
index 0000000000..9b3f8fb8e3
--- /dev/null
+++ b/third_party/checker_framework_dataflow/java/org/checkerframework/dataflow/cfg/block/SpecialBlockImpl.java
@@ -0,0 +1,24 @@
+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 + ")";
+ }
+
+}