SparseSwitchPayloadDecodedInstructionpublic final class SparseSwitchPayloadDecodedInstruction extends DecodedInstruction A decoded Dalvik instruction which contains the payload for
a {@code packed-switch} instruction. |
Fields Summary |
---|
private final int[] | keysarray of key values | private final int[] | targetsarray of target addresses. These are absolute, not relative,
addresses. |
Constructors Summary |
---|
public SparseSwitchPayloadDecodedInstruction(InstructionCodec format, int opcode, int[] keys, int[] targets)Constructs an instance.
super(format, opcode, 0, null, 0, 0L);
if (keys.length != targets.length) {
throw new IllegalArgumentException("keys/targets length mismatch");
}
this.keys = keys;
this.targets = targets;
|
Methods Summary |
---|
public int[] | getKeys()
return keys;
| public int | getRegisterCount()
return 0;
| public int[] | getTargets()
return targets;
| public DecodedInstruction | withIndex(int newIndex)
throw new UnsupportedOperationException("no index in instruction");
|
|