Class Switch
- java.lang.Object
-
- com.ibm.wala.dalvik.dex.instructions.Instruction
-
- com.ibm.wala.dalvik.dex.instructions.Switch
-
public class Switch extends Instruction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.wala.dalvik.dex.instructions.Instruction
Instruction.Visitor
-
-
Field Summary
Fields Modifier and Type Field Description SwitchPad
pad
int
regA
int
tableAddressOffset
-
Fields inherited from class com.ibm.wala.dalvik.dex.instructions.Instruction
method, noInstructions, opcode, pc
-
-
Constructor Summary
Constructors Constructor Description Switch(int instLoc, int regA, int tableAddressOffset, org.jf.dexlib.Code.Opcode opcode, DexIMethod method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getBranchTargets()
int[]
getCasesAndLabels()
int
getDefaultLabel()
int[]
getOffsets()
void
setSwitchPad(SwitchPad pad)
void
visit(Instruction.Visitor visitor)
-
Methods inherited from class com.ibm.wala.dalvik.dex.instructions.Instruction
getOpcode, getParentMethod, isFallThrough, isPEI
-
-
-
-
Field Detail
-
regA
public final int regA
-
tableAddressOffset
public final int tableAddressOffset
-
pad
public SwitchPad pad
-
-
Constructor Detail
-
Switch
public Switch(int instLoc, int regA, int tableAddressOffset, org.jf.dexlib.Code.Opcode opcode, DexIMethod method)
-
-
Method Detail
-
setSwitchPad
public void setSwitchPad(SwitchPad pad)
-
getOffsets
public int[] getOffsets()
-
getDefaultLabel
public int getDefaultLabel()
-
getCasesAndLabels
public int[] getCasesAndLabels()
-
getBranchTargets
public int[] getBranchTargets()
- Overrides:
getBranchTargets
in classInstruction
-
visit
public void visit(Instruction.Visitor visitor)
- Specified by:
visit
in classInstruction
-
-