|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.asmdex.instruction.Instruction
org.ow2.asmdex.instruction.InstructionFormat21C
public class InstructionFormat21C
Encodes and decodes an instruction built with the Dalvik format 21C. This Instruction can refer to a Type, a String, or a Field. String and Type are identified by a String, and a difference will be made according to the Opcode when writing the Instruction.
| Field Summary |
|---|
| Fields inherited from class org.ow2.asmdex.instruction.Instruction |
|---|
lineNumber, opcodeByte, opcodeHighOrderByte |
| Constructor Summary | |
|---|---|
InstructionFormat21C(int opcode,
Field field,
int registerA)
Constructor of the Instruction, if it holds a Field. |
|
InstructionFormat21C(int opcode,
java.lang.String stringOrType,
int registerA)
Constructor of the Instruction, if it holds a String or a Type. |
|
| Method Summary | |
|---|---|
int |
getIndex()
Returns the Index stored in this Instruction. |
static int |
getIndexB(IDalvikValueReader reader)
Returns the IndexB encoded where the Reader points. |
int |
getRegisterA()
The index of the register (called A value in Dalvik documentation) |
static int |
getRegisterA(int opcode)
Returns the RegisterA encoded in the given 16-bit opcode. |
int |
getSize()
Returns the size of the instruction in bytes. |
static void |
skip(IDalvikValueReader reader)
Skips the data of this Instruction. |
void |
write(ByteVector out,
ConstantPool constantPool)
Encodes the instruction, in the Dalvik format, to an output buffer. |
| Methods inherited from class org.ow2.asmdex.instruction.Instruction |
|---|
getInstructionSizeInByte, getLineNumber, getOpcodeByte, getOpcodeHighOrderByte, setLineNumber, test4BitsLimit, test4BitsLimit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstructionFormat21C(int opcode,
java.lang.String stringOrType,
int registerA)
opcode - 8 or 16 bits opcode.stringOrType - string or Type, according to what this Instruction is holding.registerA - the register this Instruction holds.
public InstructionFormat21C(int opcode,
Field field,
int registerA)
opcode - 8 or 16 bits opcode.field - Field to encode.registerA - the register this Instruction holds.| Method Detail |
|---|
public int getRegisterA()
IOneRegisterInstruction
getRegisterA in interface IOneRegisterInstructionpublic int getIndex()
IIndexInstruction
getIndex in interface IIndexInstructionpublic static int getRegisterA(int opcode)
public static int getIndexB(IDalvikValueReader reader)
reader - reader pointing after the 16-bit opcode.
public static void skip(IDalvikValueReader reader)
reader - reader on the Instruction to parse, pointing after the 16-bit opcode.public int getSize()
Instruction
getSize in class Instruction
public void write(ByteVector out,
ConstantPool constantPool)
Instruction
write in class Instructionout - output buffer.constantPool - the constantPool.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||