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

FillArrayDataPayloadDecodedInstruction

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

Fields Summary
private final Object
data
data array
private final int
size
number of elements
private final int
elementWidth
element width
Constructors Summary
private FillArrayDataPayloadDecodedInstruction(InstructionCodec format, int opcode, Object data, int size, int elementWidth)
Constructs an instance. This private instance doesn't check the type of the data array.

        super(format, opcode, 0, null, 0, 0L);

        this.data = data;
        this.size = size;
        this.elementWidth = elementWidth;
    
public FillArrayDataPayloadDecodedInstruction(InstructionCodec format, int opcode, byte[] data)
Constructs an instance.

        this(format, opcode, data, data.length, 1);
    
public FillArrayDataPayloadDecodedInstruction(InstructionCodec format, int opcode, short[] data)
Constructs an instance.

        this(format, opcode, data, data.length, 2);
    
public FillArrayDataPayloadDecodedInstruction(InstructionCodec format, int opcode, int[] data)
Constructs an instance.

        this(format, opcode, data, data.length, 4);
    
public FillArrayDataPayloadDecodedInstruction(InstructionCodec format, int opcode, long[] data)
Constructs an instance.

        this(format, opcode, data, data.length, 8);
    
Methods Summary
public java.lang.ObjectgetData()

        return data;
    
public shortgetElementWidthUnit()

        return (short) elementWidth;
    
public intgetRegisterCount()

inheritDoc

        return 0;
    
public intgetSize()

        return size;
    
public DecodedInstructionwithIndex(int newIndex)

inheritDoc

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