|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.dx.dex.code.InsnFormat
com.android.dx.dex.code.form.Form52c
public final class Form52c
Instruction format 52c
. See the instruction format spec
for details.
Field Summary | |
---|---|
static InsnFormat |
THE_ONE
non-null; unique instance of this class |
Fields inherited from class com.android.dx.dex.code.InsnFormat |
---|
ALLOW_EXTENDED_OPCODES |
Method Summary | |
---|---|
int |
codeSize()
Gets the code size of instructions that use this format. |
BitSet |
compatibleRegs(DalvInsn insn)
Returns which of a given instruction's registers will fit in this instance's format. |
String |
insnArgString(DalvInsn insn)
Returns the string form of the arguments to the given instruction. |
String |
insnCommentString(DalvInsn insn,
boolean noteIndices)
Returns the associated comment for the given instruction, if any. |
boolean |
isCompatible(DalvInsn insn)
Returns whether or not the given instruction's arguments will fit in this instance's format. |
void |
writeTo(AnnotatedOutput out,
DalvInsn insn)
Writes the code units for the given instruction to the given output destination. |
Methods inherited from class com.android.dx.dex.code.InsnFormat |
---|
argIndex, branchComment, branchFits, branchString, codeUnit, codeUnit, cstComment, cstString, isRegListSequential, listingString, literalBitsComment, literalBitsString, makeByte, opcodeUnit, opcodeUnit, regListString, regRangeString, signedFitsInByte, signedFitsInNibble, signedFitsInShort, unsignedFitsInByte, unsignedFitsInNibble, unsignedFitsInShort, write, write, write, write, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final InsnFormat THE_ONE
non-null;
unique instance of this class
Method Detail |
---|
public String insnArgString(DalvInsn insn)
""
, not
null
.
Subclasses must override this method.
insnArgString
in class InsnFormat
insn
- non-null;
the instruction
non-null;
the string formpublic String insnCommentString(DalvInsn insn, boolean noteIndices)
""
, not
null
.
Subclasses must override this method.
insnCommentString
in class InsnFormat
insn
- non-null;
the instructionnoteIndices
- whether to include an explicit notation of
constant pool indices
non-null;
the string formpublic int codeSize()
codeSize
in class InsnFormat
>= 0;
the instruction length in 16-bit code unitspublic boolean isCompatible(DalvInsn insn)
Subclasses must override this method.
isCompatible
in class InsnFormat
insn
- non-null;
the instruction to check
true
iff the instruction's arguments are
appropriate for this instance, or false
if notpublic BitSet compatibleRegs(DalvInsn insn)
The default implementation of this method always returns an empty BitSet. Subclasses must override this method if they have registers.
compatibleRegs
in class InsnFormat
insn
- non-null;
the instruction to check
non-null;
a BitSet flagging registers in the
register list that are compatible to this formatpublic void writeTo(AnnotatedOutput out, DalvInsn insn)
Subclasses must override this method.
writeTo
in class InsnFormat
out
- non-null;
the output destination to write toinsn
- non-null;
the instruction to write
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |