public final class LineNumberList extends FixedSizeList
LineNumberTable attributes.| Modifier and Type | Class and Description |
|---|---|
static class |
LineNumberList.Item
Item in a line number table.
|
| Modifier and Type | Field and Description |
|---|---|
static LineNumberList |
EMPTY
non-null; zero-size instance |
| Constructor and Description |
|---|
LineNumberList(int count)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toStringisImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutablepublic static final LineNumberList EMPTY
non-null; zero-size instancepublic LineNumberList(int count)
count - the number of elements to be in the listpublic static LineNumberList concat(LineNumberList list1, LineNumberList list2)
list1 - non-null; first instancelist2 - non-null; second instancenon-null; combined instancepublic LineNumberList.Item get(int n)
n - >= 0; which itemnull-ok; the indicated itempublic void set(int n,
LineNumberList.Item item)
n - >= 0, < size(); which elementitem - non-null; the itempublic 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 knownCopyright © 2020. All Rights Reserved.