public final class InsnList extends FixedSizeList
Insn instances.| Constructor and Description |
|---|
InsnList(int size)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toStringisImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutablepublic InsnList(int size)
null.size - the size of the listpublic Insn get(int n)
NullPointerException.n - >= 0, < size(); which indexnon-null; element at that indexpublic 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 comparepublic InsnList withRegisterOffset(int delta)
delta - the amount to offset register numbers bynon-null; an appropriately-constructed instanceCopyright © 2020. All Rights Reserved.