protected static class CFGBuilder.TryCatchFrame extends Object implements CFGBuilder.TryFrame
| Modifier and Type | Field and Description |
|---|---|
protected List<Pair<TypeMirror,CFGBuilder.Label>> |
catchLabels
An ordered list of pairs because catch blocks are ordered.
|
protected Types |
types
The Types utilities.
|
| Constructor and Description |
|---|
TryCatchFrame(Types types,
List<Pair<TypeMirror,CFGBuilder.Label>> catchLabels)
Construct a TryCatchFrame.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
possibleLabels(TypeMirror thrown,
Set<CFGBuilder.Label> labels)
Given a type of thrown exception, add the set of possible control flow successor
CFGBuilder.Labels to the argument set. |
String |
toString() |
protected final Types types
protected final List<Pair<TypeMirror,CFGBuilder.Label>> catchLabels
public TryCatchFrame(Types types, List<Pair<TypeMirror,CFGBuilder.Label>> catchLabels)
types - the Types utilitiescatchLabels - the catch labelspublic boolean possibleLabels(TypeMirror thrown, Set<CFGBuilder.Label> labels)
CFGBuilder.Labels to the argument set. Return true if the exception is known to be caught by one of
those labels and false if it may propagate still further.possibleLabels in interface CFGBuilder.TryFrame