aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/checker_framework_dataflow/java/org/checkerframework/dataflow/cfg/block/SpecialBlock.java
blob: 89154bf60422885e16db3a72c32cd7c10e224d11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package org.checkerframework.dataflow.cfg.block;

/**
 * Represents a special basic block; i.e., one of the following:
 * <ul>
 * <li>Entry block of a method.</li>
 * <li>Regular exit block of a method.</li>
 * <li>Exceptional exit block of a method.</li>
 * </ul>
 *
 * @author Stefan Heule
 *
 */
public interface SpecialBlock extends SingleSuccessorBlock {

    /** The types of special basic blocks */
    public static enum SpecialBlockType {

        /** The entry block of a method */
        ENTRY,

        /** The exit block of a method */
        EXIT,

        /** A special exit block of a method for exceptional termination */
        EXCEPTIONAL_EXIT,
    }

    /**
     * @return The type of this special basic block.
     */
    SpecialBlockType getSpecialType();

}