|
||||||||||
| 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.rop.code.InsnList
public final class InsnList
List of Insn instances.
| Constructor Summary | |
|---|---|
InsnList(int size)
Constructs an instance. |
|
| Method Summary | |
|---|---|
boolean |
contentEquals(InsnList b)
Compares the contents of this InsnList with another. |
void |
forEach(Insn.Visitor visitor)
Visits each instruction in the list, in order. |
Insn |
get(int n)
Gets the element at the given index. |
Insn |
getLast()
Gets the last instruction. |
void |
set(int n,
Insn insn)
Sets the instruction at the given index. |
InsnList |
withRegisterOffset(int delta)
Returns an instance that is identical to this one, except that the registers in each instruction are offset by the given amount. |
| 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 |
| Constructor Detail |
|---|
public InsnList(int size)
null.
size - the size of the list| Method Detail |
|---|
public Insn get(int n)
NullPointerException.
n - >= 0, < size(); which index
non-null; element at that index
public void set(int n,
Insn insn)
n - >= 0, < size(); which indexinsn - non-null; the instruction to set at npublic Insn getLast()
get(size() - 1).
non-null; the last instructionpublic void forEach(Insn.Visitor visitor)
visitor - non-null; visitor to usepublic boolean contentEquals(InsnList b)
InsnList with another.
The blocks must have the same number of insns, and each Insn must
also return true to Insn.contentEquals().
b - to compare
public InsnList withRegisterOffset(int delta)
delta - the amount to offset register numbers by
non-null; an appropriately-constructed instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||