|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.dx.dex.code.DalvInsn
com.android.dx.dex.code.FixedSizeInsn
public abstract class FixedSizeInsn
Base class for instructions which are of a fixed code size and
which use InsnFormat
methods to write themselves. This
includes most — but not all — instructions.
Constructor Summary | |
---|---|
FixedSizeInsn(Dop opcode,
SourcePosition position,
RegisterSpecList registers)
Constructs an instance. |
Method Summary | |
---|---|
int |
codeSize()
Gets the size of this instruction, in 16-bit code units. |
protected String |
listingString0(boolean noteIndices)
Helper for DalvInsn.listingString(java.lang.String, int, boolean) , which returns the string
form of this instance suitable for inclusion in a
human-oriented listing dump, not including the instruction
address and without respect for any output formatting. |
DalvInsn |
withRegisterOffset(int delta)
Returns an instance that is just like this one, except that all register references have been offset by the given delta, and its address is reset. |
void |
writeTo(AnnotatedOutput out)
Writes this instance to the given output. |
Methods inherited from class com.android.dx.dex.code.DalvInsn |
---|
argString, expandedPrefix, expandedSuffix, expandedVersion, getAddress, getLowRegVersion, getMinimumRegisterRequirement, getNextAddress, getOpcode, getPosition, getRegisters, hasAddress, hasResult, identifierString, listingString, makeMove, setAddress, toString, withOpcode, withRegisters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FixedSizeInsn(Dop opcode, SourcePosition position, RegisterSpecList registers)
-1
).
Note: In the unlikely event that an instruction takes
absolutely no registers (e.g., a nop
or a
no-argument no-result * static method call), then the given
register list may be passed as RegisterSpecList.EMPTY
.
opcode
- the opcode; one of the constants from Dops
position
- non-null;
source positionregisters
- non-null;
register list, including a
result register if appropriate (that is, registers may be either
ins or outs)Method Detail |
---|
public final int codeSize()
codeSize
in class DalvInsn
>= 0;
the code size of this instructionpublic final void writeTo(AnnotatedOutput out)
writeTo
in class DalvInsn
out
- non-null;
where to write topublic final DalvInsn withRegisterOffset(int delta)
withRegisterOffset
in class DalvInsn
delta
- the amount to offset register references by
non-null;
an appropriately-constructed instanceprotected final String listingString0(boolean noteIndices)
DalvInsn.listingString(java.lang.String, int, boolean)
, which returns the string
form of this instance suitable for inclusion in a
human-oriented listing dump, not including the instruction
address and without respect for any output formatting. This
method should return null
if this instance should
not appear in a listing.
listingString0
in class DalvInsn
noteIndices
- whether to include an explicit notation of
constant pool indices
null-ok;
the listing string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |