protected static class CFGBuilder.TryStack extends Object
Modifier and Type | Field and Description |
---|---|
protected CFGBuilder.Label |
exitLabel
The exit label.
|
protected ArrayDeque<CFGBuilder.TryFrame> |
frames
The try frames.
|
Constructor and Description |
---|
TryStack(CFGBuilder.Label exitLabel)
Construct a TryStack.
|
Modifier and Type | Method and Description |
---|---|
void |
popFrame()
Pop a frame.
|
Set<CFGBuilder.Label> |
possibleLabels(TypeMirror thrown)
Returns the set of possible
CFGBuilder.Label s where control may transfer when an exception
of the given type is thrown. |
void |
pushFrame(CFGBuilder.TryFrame frame)
Push a new frame.
|
String |
toString() |
protected final CFGBuilder.Label exitLabel
protected final ArrayDeque<CFGBuilder.TryFrame> frames
public TryStack(CFGBuilder.Label exitLabel)
exitLabel
- exit labelpublic void pushFrame(CFGBuilder.TryFrame frame)
frame
- the frame to pushpublic void popFrame()
public Set<CFGBuilder.Label> possibleLabels(TypeMirror thrown)
CFGBuilder.Label
s where control may transfer when an exception
of the given type is thrown.