public static class ByteCatchList.Item
extends java.lang.Object
| Constructor and Description |
|---|
Item(int startPc,
int endPc,
int handlerPc,
CstType exceptionClass)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
covers(int pc)
Returns whether the given address is in the range of this item.
|
int |
getEndPc()
Gets the end pc (exclusive) of the handler's range.
|
CstType |
getExceptionClass()
Gets the class of exception handled.
|
int |
getHandlerPc()
Gets the pc of the exception handler.
|
int |
getStartPc()
Gets the start pc (inclusive) of the handler's range.
|
public Item(int startPc,
int endPc,
int handlerPc,
CstType exceptionClass)
startPc - >= 0; the start pc (inclusive) of the
handler's rangeendPc - >= startPc; the end pc (exclusive) of the
handler's rangehandlerPc - >= 0; the pc of the exception handlerexceptionClass - null-ok; the exception class or
null to catch all exceptions with this handlerpublic int getStartPc()
>= 0; the start pc (inclusive) of the handler's range.public int getEndPc()
>= startPc; the end pc (exclusive) of the
handler's range.public int getHandlerPc()
>= 0; the pc of the exception handlerpublic CstType getExceptionClass()
non-null; the exception class; CstType.OBJECT
if this entry handles all possible exceptionspublic boolean covers(int pc)
pc - the addresstrue iff this item covers pcCopyright © 2020. All Rights Reserved.