public final class PositionList extends FixedSizeList
DalvInsnList.| Modifier and Type | Class and Description |
|---|---|
static class |
PositionList.Entry
Entry in a position list.
|
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
PositionList(int size)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toStringisImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutablepublic static final PositionList EMPTY
non-null; empty instancepublic static final int NONE
make(com.android.dx.dex.code.DalvInsnList, int) to indicate that no actual position
information should be returnedpublic static final int LINES
make(com.android.dx.dex.code.DalvInsnList, int) to indicate that only line number
transitions should be returnedpublic 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.public PositionList(int size)
null.size - >= 0; the size of the listpublic 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 classnon-null; the positions listpublic PositionList.Entry get(int n)
NullPointerException.n - >= 0, < size(); which indexnon-null; element at that indexpublic void set(int n,
PositionList.Entry entry)
n - >= 0, < size(); which indexentry - non-null; the entry to set at nCopyright © 2020. All Rights Reserved.