FileDocCategorySizeDatePackage
SparseSwitchPayloadDecodedInstruction.javaAPI DocAndroid 5.1 API1855Thu Mar 12 22:18:30 GMT 2015com.android.dx.io.instructions

SparseSwitchPayloadDecodedInstruction

public final class SparseSwitchPayloadDecodedInstruction extends DecodedInstruction
A decoded Dalvik instruction which contains the payload for a {@code packed-switch} instruction.

Fields Summary
private final int[]
keys
array of key values
private final int[]
targets
array 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 intgetRegisterCount()

inheritDoc

        return 0;
    
public int[]getTargets()

        return targets;
    
public DecodedInstructionwithIndex(int newIndex)

inheritDoc

        throw new UnsupportedOperationException("no index in instruction");