Class Instruction
- java.lang.Object
-
- com.ibm.wala.dalvik.dex.instructions.Instruction
-
- Direct Known Subclasses:
ArrayFill
,ArrayGet
,ArrayLength
,ArrayPut
,BinaryLiteralOperation
,BinaryOperation
,Branch
,CheckCast
,Constant
,GetField
,Goto
,InstanceOf
,Invoke
,Monitor
,New
,NewArray
,NewArrayFilled
,PutField
,Return
,Switch
,Throw
,UnaryOperation
public abstract class Instruction extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Instruction.Visitor
-
Field Summary
Fields Modifier and Type Field Description protected DexIMethod
method
static int[]
noInstructions
protected org.jf.dexlib.Code.Opcode
opcode
int
pc
-
Constructor Summary
Constructors Modifier Constructor Description protected
Instruction(int pc, org.jf.dexlib.Code.Opcode op, DexIMethod method)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int[]
getBranchTargets()
org.jf.dexlib.Code.Opcode
getOpcode()
DexIMethod
getParentMethod()
boolean
isFallThrough()
True if the instruction can continue.boolean
isPEI()
True if the instruction can throw an exceptionabstract void
visit(Instruction.Visitor visitor)
-
-
-
Field Detail
-
pc
public final int pc
-
opcode
protected final org.jf.dexlib.Code.Opcode opcode
-
method
protected final DexIMethod method
-
noInstructions
public static final int[] noInstructions
-
-
Constructor Detail
-
Instruction
protected Instruction(int pc, org.jf.dexlib.Code.Opcode op, DexIMethod method)
-
-
Method Detail
-
isFallThrough
public boolean isFallThrough()
True if the instruction can continue.- See Also:
IInstruction.isFallThrough()
-
isPEI
public boolean isPEI()
True if the instruction can throw an exception- See Also:
IInstruction.isPEI()
-
getParentMethod
public DexIMethod getParentMethod()
- Returns:
- The DexIMethod which contains this instruction.
-
getOpcode
public org.jf.dexlib.Code.Opcode getOpcode()
- Returns:
- The opcode associated with this instruction.
-
getBranchTargets
public int[] getBranchTargets()
-
visit
public abstract void visit(Instruction.Visitor visitor)
-
-