|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.util.MutabilityControl
com.android.dx.util.FixedSizeList
com.android.dx.cf.code.ByteCatchList
public final class ByteCatchList
List of catch entries, that is, the elements of an "exception table,"
which is part of a standard Code attribute.
| Nested Class Summary | |
|---|---|
static class |
ByteCatchList.Item
Item in an exception handler list. |
| Field Summary | |
|---|---|
static ByteCatchList |
EMPTY
non-null; convenient zero-entry instance |
| Constructor Summary | |
|---|---|
ByteCatchList(int count)
Constructs an instance. |
|
| Method Summary | |
|---|---|
int |
byteLength()
Gets the total length of this structure in bytes, when included in a Code attribute. |
ByteCatchList.Item |
get(int n)
Gets the indicated item. |
ByteCatchList |
listFor(int pc)
Gets the list of items active at the given address. |
void |
set(int n,
ByteCatchList.Item item)
Sets the item at the given index. |
void |
set(int n,
int startPc,
int endPc,
int handlerPc,
CstType exceptionClass)
Sets the item at the given index. |
TypeList |
toRopCatchList()
Returns a rop-style catches list equivalent to this one. |
IntList |
toTargetList(int noException)
Returns a target list corresponding to this instance. |
| Methods inherited from class com.android.dx.util.FixedSizeList |
|---|
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toString |
| Methods inherited from class com.android.dx.util.MutabilityControl |
|---|
isImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ByteCatchList EMPTY
non-null; convenient zero-entry instance
| Constructor Detail |
|---|
public ByteCatchList(int count)
count - the number of elements to be in the table| Method Detail |
|---|
public int byteLength()
Code attribute. The returned value includes the
two bytes for exception_table_length.
>= 2; the total length, in bytespublic ByteCatchList.Item get(int n)
n - >= 0; which item
null-ok; the indicated item
public void set(int n,
ByteCatchList.Item item)
n - >= 0, < size(); which entry to setitem - non-null; the item
public void set(int n,
int startPc,
int endPc,
int handlerPc,
CstType exceptionClass)
n - >= 0, < size(); which entry to setstartPc - >= 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 ByteCatchList listFor(int pc)
pc - which address
non-null; list of exception handlers active at
pcpublic IntList toTargetList(int noException)
noException address appended if appropriate. The
result is automatically made immutable.
noException - >= -1; the no-exception address to append, or
-1 not to append anything
non-null; list of exception targets, with
noException appended if necessarypublic TypeList toRopCatchList()
non-null; the converted instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||