Top Description Fields Constructors Methods
org.droidparts.dexmaker.dx.io.instructions

public final Class SparseSwitchPayloadDecodedInstruction

extends DecodedInstruction
Class Inheritance

A decoded Dalvik instruction which contains the payload for a packed-switch instruction.

Field Summary

Modifier and TypeField and Description
private final int[]
keys

array of key values

private final int[]
targets

array of target addresses.

Constructor Summary

AccessConstructor and Description
public
SparseSwitchPayloadDecodedInstruction(InstructionCodec format, int opcode, int[] keys, int[] targets)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public int[]
public int
public int[]
public DecodedInstruction
withIndex(int newIndex)

Implements abstract org.droidparts.dexmaker.dx.io.instructions.DecodedInstruction.withIndex.

Returns an instance just like this one, except with the index replaced with the given one.
Inherited from org.droidparts.dexmaker.dx.io.instructions.DecodedInstruction:
decodedecodeAllencodegetAgetABytegetANibblegetAUnitgetBgetBBytegetBNibblegetBUnitgetCgetCBytegetCNibblegetCUnitgetDgetDBytegetDNibblegetDUnitgetEgetENibblegetFormatgetIndexgetIndexTypegetIndexUnitgetLiteralgetLiteralBytegetLiteralIntgetLiteralNibblegetLiteralUnitgetOpcodegetOpcodeUnitgetRegisterCountUnitgetTargetgetTargetgetTargetBytegetTargetUnit

Field Detail

keysback to summary
private final int[] keys

array of key values

targetsback to summary
private final int[] targets

array of target addresses. These are absolute, not relative, addresses.

Constructor Detail

SparseSwitchPayloadDecodedInstructionback to summary
public SparseSwitchPayloadDecodedInstruction(InstructionCodec format, int opcode, int[] keys, int[] targets)

Constructs an instance.

Method Detail

getKeysback to summary
public int[] getKeys()
getRegisterCountback to summary
public int getRegisterCount()

Implements abstract org.droidparts.dexmaker.dx.io.instructions.DecodedInstruction.getRegisterCount.

getTargetsback to summary
public int[] getTargets()
withIndexback to summary
public DecodedInstruction withIndex(int newIndex)

Implements abstract org.droidparts.dexmaker.dx.io.instructions.DecodedInstruction.withIndex.

Doc from org.droidparts.dexmaker.dx.io.instructions.DecodedInstruction.withIndex.

Returns an instance just like this one, except with the index replaced with the given one.