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

public final Class PackedSwitchPayloadDecodedInstruction

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
firstKey

first key value

private final int[]
targets

array of target addresses.

Constructor Summary

AccessConstructor and Description
public
PackedSwitchPayloadDecodedInstruction(InstructionCodec format, int opcode, int firstKey, 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

firstKeyback to summary
private final int firstKey

first key value

targetsback to summary
private final int[] targets

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

Constructor Detail

PackedSwitchPayloadDecodedInstructionback to summary
public PackedSwitchPayloadDecodedInstruction(InstructionCodec format, int opcode, int firstKey, int[] targets)

Constructs an instance.

Method Detail

getFirstKeyback to summary
public int getFirstKey()
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.