protected static class CFGBuilder.TryCatchFrame extends java.lang.Object implements CFGBuilder.TryFrame
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Pair<javax.lang.model.type.TypeMirror,CFGBuilder.Label>> |
catchLabels
An ordered list of pairs because catch blocks are ordered.
|
protected javax.lang.model.util.Types |
types |
Constructor and Description |
---|
TryCatchFrame(javax.lang.model.util.Types types,
java.util.List<Pair<javax.lang.model.type.TypeMirror,CFGBuilder.Label>> catchLabels) |
Modifier and Type | Method and Description |
---|---|
boolean |
possibleLabels(javax.lang.model.type.TypeMirror thrown,
java.util.Set<CFGBuilder.Label> labels)
Given a type of thrown exception, add the set of possible control flow successor
CFGBuilder.Label s to the argument set. |
protected javax.lang.model.util.Types types
protected java.util.List<Pair<javax.lang.model.type.TypeMirror,CFGBuilder.Label>> catchLabels
public TryCatchFrame(javax.lang.model.util.Types types, java.util.List<Pair<javax.lang.model.type.TypeMirror,CFGBuilder.Label>> catchLabels)
public boolean possibleLabels(javax.lang.model.type.TypeMirror thrown, java.util.Set<CFGBuilder.Label> labels)
CFGBuilder.Label
s 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