|
||||||||||
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.dex.code.DalvInsnList
public final class DalvInsnList
List of DalvInsn
instances.
Constructor Summary | |
---|---|
DalvInsnList(int size,
int regCount)
Constructs an instance. |
Method Summary | |
---|---|
int |
codeSize()
Gets the size of this instance, in 16-bit code units. |
void |
debugPrint(OutputStream out,
String prefix,
boolean verbose)
Does a human-friendly dump of this instance. |
void |
debugPrint(Writer out,
String prefix,
boolean verbose)
Does a human-friendly dump of this instance. |
DalvInsn |
get(int n)
Gets the element at the given index. |
int |
getOutsSize()
Gets the size of the outgoing arguments area required by this method. |
int |
getRegistersSize()
Gets the minimum required register count implied by this instance. |
static DalvInsnList |
makeImmutable(ArrayList<DalvInsn> list,
int regCount)
Constructs and returns an immutable instance whose elements are identical to the ones in the given list, in the same order. |
void |
set(int n,
DalvInsn insn)
Sets the instruction at the given index. |
void |
writeTo(AnnotatedOutput out)
Writes all the instructions in this instance to the given output destination. |
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 DalvInsnList(int size, int regCount)
null
.
size
- the size of the listMethod Detail |
---|
public static DalvInsnList makeImmutable(ArrayList<DalvInsn> list, int regCount)
list
- non-null;
the list to use for elementsregCount
- count, in register-units, of the number of registers
this code block requires.
non-null;
an appropriately-constructed instance of this
classpublic DalvInsn get(int n)
NullPointerException
.
n
- >= 0, < size();
which index
non-null;
element at that indexpublic void set(int n, DalvInsn insn)
n
- >= 0, < size();
which indexinsn
- non-null;
the instruction to set at n
public int codeSize()
>= 0;
the sizepublic void writeTo(AnnotatedOutput out)
out
- non-null;
where to write topublic int getRegistersSize()
>= 0;
the required registers sizepublic int getOutsSize()
>= 0;
the required outgoing arguments sizepublic void debugPrint(Writer out, String prefix, boolean verbose)
out
- non-null;
where to dumpprefix
- non-null;
prefix to attach to each line of outputverbose
- whether to be verbose; verbose output includes
lines for zero-size instructions and explicit constant pool indicespublic void debugPrint(OutputStream out, String prefix, boolean verbose)
out
- non-null;
where to dumpprefix
- non-null;
prefix to attach to each line of outputverbose
- whether to be verbose; verbose output includes
lines for zero-size instructions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |