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 classInstruction.Visitor
-
Field Summary
Fields Modifier and Type Field Description protected DexIMethodmethodstatic int[]noInstructionsprotected org.jf.dexlib.Code.Opcodeopcodeintpc
-
Constructor Summary
Constructors Modifier Constructor Description protectedInstruction(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.OpcodegetOpcode()DexIMethodgetParentMethod()booleanisFallThrough()True if the instruction can continue.booleanisPEI()True if the instruction can throw an exceptionabstract voidvisit(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)
-
-