Package soot.toDex.instructions
Class SwitchPayload
- java.lang.Object
-
- soot.toDex.instructions.AbstractInsn
-
- soot.toDex.instructions.InsnWithOffset
-
- soot.toDex.instructions.AbstractPayload
-
- soot.toDex.instructions.SwitchPayload
-
- Direct Known Subclasses:
PackedSwitchPayload,SparseSwitchPayload
public abstract class SwitchPayload extends AbstractPayload
The payload for switch instructions, usually placed at the end of a method. This is where the jump targets are stored.
Note that this is anInsnWithOffsetwith multiple offsets.
-
-
Field Summary
Fields Modifier and Type Field Description protected Insn31tswitchInsnprotected List<Unit>targets-
Fields inherited from class soot.toDex.instructions.InsnWithOffset
target
-
Fields inherited from class soot.toDex.instructions.AbstractInsn
opc, regs
-
-
Constructor Summary
Constructors Constructor Description SwitchPayload(List<Unit> targets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxJumpOffset()Gets the maximum number of words available for the jump offsetvoidsetSwitchInsn(Insn31t switchInsn)-
Methods inherited from class soot.toDex.instructions.InsnWithOffset
getTarget, setTarget
-
Methods inherited from class soot.toDex.instructions.AbstractInsn
getIncompatibleRegs, getMinimumRegsNeeded, getOpcode, getRealInsn, getRealInsn0, getRegs, getSize, hasIncompatibleRegs, toString
-
-
-
-
Method Detail
-
setSwitchInsn
public void setSwitchInsn(Insn31t switchInsn)
-
getMaxJumpOffset
public int getMaxJumpOffset()
Description copied from class:InsnWithOffsetGets the maximum number of words available for the jump offset- Specified by:
getMaxJumpOffsetin classInsnWithOffset- Returns:
- The maximum number of words available for the jump offset
-
-