Package soot.dexpler.instructions
Class InstructionFactory
- java.lang.Object
-
- soot.dexpler.instructions.InstructionFactory
-
public class InstructionFactory extends Object
Factory that returns an appropriate Instruction instances for given dexlib instructions and opcodes.
-
-
Constructor Summary
Constructors Constructor Description InstructionFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DexlibAbstractInstructionfromInstruction(org.jf.dexlib2.iface.instruction.Instruction instruction, int codeAddress)Resolve an Instruction from a dexlib instruction.static DexlibAbstractInstructionfromOpcode(org.jf.dexlib2.Opcode op, org.jf.dexlib2.iface.instruction.Instruction instruction, int codeAddress)Resolve an Instruction from an dex opcode.
-
-
-
Method Detail
-
fromInstruction
public static DexlibAbstractInstruction fromInstruction(org.jf.dexlib2.iface.instruction.Instruction instruction, int codeAddress)
Resolve an Instruction from a dexlib instruction.- Parameters:
instruction- the corresponding dexlib instructioncodeAddress- the byte code address of the instruction
-
fromOpcode
public static DexlibAbstractInstruction fromOpcode(org.jf.dexlib2.Opcode op, org.jf.dexlib2.iface.instruction.Instruction instruction, int codeAddress)
Resolve an Instruction from an dex opcode.- Parameters:
op- the opcode of the instructioninstruction- the corresponding dexlib instructioncodeAddress- the byte code address of the instruction
-
-