public final class ExceptionHandler extends Object
Modifier and Type | Field and Description |
---|---|
private JavaType |
catchType |
private int |
catchTypeCPI |
private int |
endBCI |
private int |
handlerBCI |
private int |
startBCI |
Constructor and Description |
---|
ExceptionHandler(int startBCI,
int endBCI,
int catchBCI,
int catchTypeCPI,
JavaType catchType)
Creates a new exception handler with the specified ranges.
|
Modifier and Type | Method and Description |
---|---|
int |
catchTypeCPI()
Returns the index into the constant pool representing the type of exception caught by this
handler.
|
boolean |
equals(Object obj) |
JavaType |
getCatchType()
Returns the type of exception caught by this exception handler.
|
int |
getEndBCI()
Returns the end bytecode index of the protected range of this handler.
|
int |
getHandlerBCI()
Returns the bytecode index of the handler block of this handler.
|
int |
getStartBCI()
Returns the start bytecode index of the protected range of this handler.
|
int |
hashCode() |
boolean |
isCatchAll()
Checks whether this handler catches all exceptions.
|
String |
toString() |
private final int startBCI
private final int endBCI
private final int handlerBCI
private final int catchTypeCPI
public ExceptionHandler(int startBCI, int endBCI, int catchBCI, int catchTypeCPI, JavaType catchType)
startBCI
- the start index of the protected rangeendBCI
- the end index of the protected rangecatchBCI
- the index of the handlercatchTypeCPI
- the index of the throwable class in the constant poolcatchType
- the type caught by this exception handlerpublic int getStartBCI()
public int getEndBCI()
public int getHandlerBCI()
public int catchTypeCPI()
public boolean isCatchAll()
true
if this handler catches all exceptionspublic JavaType getCatchType()