blob: a549c5f03fab8d5e6ec4f9330759fb2dd4c47fae (
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
|
package org.checkerframework.dataflow.cfg.block;
import java.util.Map;
import java.util.Set;
import javax.lang.model.type.TypeMirror;
import org.checkerframework.dataflow.cfg.node.Node;
/**
* Represents a basic block that contains exactly one {@link Node} which can throw an exception.
* This block has exactly one non-exceptional successor, and one or more exceptional successors.
*
* <p>The following invariant holds.
*
* <pre>
* getNode().getBlock() == this
* </pre>
*
* @author Stefan Heule
*/
public interface ExceptionBlock extends SingleSuccessorBlock {
/** @return the node of this block */
Node getNode();
/** @return the list of exceptional successor blocks as an unmodifiable map */
Map<TypeMirror, Set<Block>> getExceptionalSuccessors();
}
|