Package com.android.dx.dex.code
Class CatchTable
java.lang.Object
com.android.dx.util.MutabilityControl
com.android.dx.util.FixedSizeList
com.android.dx.dex.code.CatchTable
- All Implemented Interfaces:
ToHuman
,Comparable<CatchTable>
Table of catch entries. Each entry includes a range of code
addresses for which it is valid and an associated
CatchHandlerList
.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(CatchTable other) get
(int n) Gets the element at the given index.void
set
(int n, CatchTable.Entry entry) Sets the entry at the given index.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
-
Field Details
-
EMPTY
non-null;
empty instance
-
-
Constructor Details
-
CatchTable
public CatchTable(int size) Constructs an instance. All indices initially containnull
.- Parameters:
size
->= 0;
the size of the table
-
-
Method Details
-
get
Gets the element at the given index. It is an error to call this with the index for an element which was never set; if you do that, this will throwNullPointerException
.- Parameters:
n
->= 0, < size();
which index- Returns:
non-null;
element at that index
-
set
Sets the entry at the given index.- Parameters:
n
->= 0, < size();
which indexentry
-non-null;
the entry to set atn
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CatchTable>
-