|
||||||||||
| 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.LineNumberList
public final class LineNumberList
List of "line number" entries, which are the contents of
LineNumberTable attributes.
| Nested Class Summary | |
|---|---|
static class |
LineNumberList.Item
Item in a line number table. |
| Field Summary | |
|---|---|
static LineNumberList |
EMPTY
non-null; zero-size instance |
| Constructor Summary | |
|---|---|
LineNumberList(int count)
Constructs an instance. |
|
| Method Summary | |
|---|---|
static LineNumberList |
concat(LineNumberList list1,
LineNumberList list2)
Returns an instance which is the concatenation of the two given instances. |
LineNumberList.Item |
get(int n)
Gets the indicated item. |
int |
pcToLine(int pc)
Gets the line number associated with the given address. |
void |
set(int n,
int startPc,
int lineNumber)
Sets the item at the given index. |
void |
set(int n,
LineNumberList.Item item)
Sets the item 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 LineNumberList EMPTY
non-null; zero-size instance
| Constructor Detail |
|---|
public LineNumberList(int count)
count - the number of elements to be in the list| Method Detail |
|---|
public static LineNumberList concat(LineNumberList list1,
LineNumberList list2)
list1 - non-null; first instancelist2 - non-null; second instance
non-null; combined instancepublic LineNumberList.Item get(int n)
n - >= 0; which item
null-ok; the indicated item
public void set(int n,
LineNumberList.Item item)
n - >= 0, < size(); which elementitem - non-null; the item
public void set(int n,
int startPc,
int lineNumber)
n - >= 0, < size(); which elementstartPc - >= 0; start pc of this itemlineNumber - >= 0; corresponding line numberpublic int pcToLine(int pc)
pc - >= 0; the address to look up
>= -1; the associated line number, or -1 if
none is known
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||