|
||||||||||
| 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.dex.code.CatchHandlerList
public final class CatchHandlerList
Ordered list of (exception type, handler address) entries.
| Nested Class Summary | |
|---|---|
static class |
CatchHandlerList.Entry
Entry in the list. |
| Field Summary | |
|---|---|
static CatchHandlerList |
EMPTY
non-null; empty instance |
| Constructor Summary | |
|---|---|
CatchHandlerList(int size)
Constructs an instance. |
|
| Method Summary | |
|---|---|
boolean |
catchesAll()
Returns whether or not this instance ends with a "catch-all" handler. |
int |
compareTo(CatchHandlerList other)
|
CatchHandlerList.Entry |
get(int n)
Gets the element at the given index. |
void |
set(int n,
CatchHandlerList.Entry entry)
Sets the entry at the given index. |
void |
set(int n,
CstType exceptionType,
int handler)
Sets the entry at the given index. |
String |
toHuman()
Return the "human" string form of this instance. |
String |
toHuman(String prefix,
String header)
Get the human form of this instance, prefixed on each line with the string. |
| Methods inherited from class com.android.dx.util.FixedSizeList |
|---|
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, 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 CatchHandlerList EMPTY
non-null; empty instance
| Constructor Detail |
|---|
public CatchHandlerList(int size)
null.
size - >= 0; the size of the list| Method Detail |
|---|
public CatchHandlerList.Entry get(int n)
NullPointerException.
n - >= 0, < size(); which index
non-null; element at that indexpublic String toHuman()
toString().
This method will only work if every element of the list
implements ToHuman.
toHuman in interface ToHumantoHuman in class FixedSizeListnon-null; the human string form
public String toHuman(String prefix,
String header)
prefix - non-null; the prefix for every lineheader - non-null; the header for the first line (after the
first prefix)
non-null; the human formpublic boolean catchesAll()
true if this instance ends with a "catch-all"
handler or false if not
public void set(int n,
CstType exceptionType,
int handler)
n - >= 0, < size(); which indexexceptionType - non-null; type of exception handledhandler - >= 0; exception handler address
public void set(int n,
CatchHandlerList.Entry entry)
n - >= 0, < size(); which indexentry - non-null; the entry to set at npublic int compareTo(CatchHandlerList other)
compareTo in interface Comparable<CatchHandlerList>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||