Package com.android.dx.cf.code
Class ByteCatchList.Item
java.lang.Object
com.android.dx.cf.code.ByteCatchList.Item
- Enclosing class:
ByteCatchList
Item in an exception handler list.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.Gets the class of exception handled.int
Gets the pc of the exception handler.int
Gets the start pc (inclusive) of the handler's range.
-
Constructor Details
-
Item
Constructs an instance.- Parameters:
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 ornull
to catch all exceptions with this handler
-
-
Method Details
-
getStartPc
public int getStartPc()Gets the start pc (inclusive) of the handler's range.- Returns:
>= 0;
the start pc (inclusive) of the handler's range.
-
getEndPc
public int getEndPc()Gets the end pc (exclusive) of the handler's range.- Returns:
>= startPc;
the end pc (exclusive) of the handler's range.
-
getHandlerPc
public int getHandlerPc()Gets the pc of the exception handler.- Returns:
>= 0;
the pc of the exception handler
-
getExceptionClass
Gets the class of exception handled.- Returns:
non-null;
the exception class;CstType.OBJECT
if this entry handles all possible exceptions
-
covers
public boolean covers(int pc) Returns whether the given address is in the range of this item.- Parameters:
pc
- the address- Returns:
true
iff this item coverspc
-