|
||||||||||
| 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.PositionList
public final class PositionList
List of source position entries. This class includes a utility
method to extract an instance out of a DalvInsnList.
| Nested Class Summary | |
|---|---|
static class |
PositionList.Entry
Entry in a position list. |
| Field Summary | |
|---|---|
static PositionList |
EMPTY
non-null; empty instance |
static int |
IMPORTANT
constant for make(com.android.dx.dex.code.DalvInsnList, int) to indicate that only "important" position
information should be returned. |
static int |
LINES
constant for make(com.android.dx.dex.code.DalvInsnList, int) to indicate that only line number
transitions should be returned |
static int |
NONE
constant for make(com.android.dx.dex.code.DalvInsnList, int) to indicate that no actual position
information should be returned |
| Constructor Summary | |
|---|---|
PositionList(int size)
Constructs an instance. |
|
| Method Summary | |
|---|---|
PositionList.Entry |
get(int n)
Gets the element at the given index. |
static PositionList |
make(DalvInsnList insns,
int howMuch)
Extracts and returns the source position information out of an instruction list. |
void |
set(int n,
PositionList.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final PositionList EMPTY
non-null; empty instance
public static final int NONE
make(com.android.dx.dex.code.DalvInsnList, int) to indicate that no actual position
information should be returned
public static final int LINES
make(com.android.dx.dex.code.DalvInsnList, int) to indicate that only line number
transitions should be returned
public static final int IMPORTANT
make(com.android.dx.dex.code.DalvInsnList, int) to indicate that only "important" position
information should be returned. This includes block starts and
instructions that might throw.
| Constructor Detail |
|---|
public PositionList(int size)
null.
size - >= 0; the size of the list| Method Detail |
|---|
public static PositionList make(DalvInsnList insns,
int howMuch)
insns - non-null; instructions to converthowMuch - how much information should be included; one of the
static constants defined by this class
non-null; the positions listpublic PositionList.Entry get(int n)
NullPointerException.
n - >= 0, < size(); which index
non-null; element at that index
public void set(int n,
PositionList.Entry entry)
n - >= 0, < size(); which indexentry - non-null; the entry to set at n
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||