Class ImmutableArrayPayload
- java.lang.Object
-
- org.jf.dexlib2.immutable.instruction.ImmutableInstruction
-
- org.jf.dexlib2.immutable.instruction.ImmutableArrayPayload
-
- All Implemented Interfaces:
ArrayPayload
,Instruction
,PayloadInstruction
public class ImmutableArrayPayload extends ImmutableInstruction implements ArrayPayload
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.collect.ImmutableList<java.lang.Number>
arrayElements
protected int
elementWidth
static Opcode
OPCODE
-
Fields inherited from class org.jf.dexlib2.immutable.instruction.ImmutableInstruction
opcode
-
-
Constructor Summary
Constructors Constructor Description ImmutableArrayPayload(int elementWidth, com.google.common.collect.ImmutableList<java.lang.Number> arrayElements)
ImmutableArrayPayload(int elementWidth, java.util.List<java.lang.Number> arrayElements)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Number>
getArrayElements()
int
getCodeUnits()
Gets the size of this instruction.int
getElementWidth()
Format
getFormat()
static ImmutableArrayPayload
of(ArrayPayload instruction)
-
Methods inherited from class org.jf.dexlib2.immutable.instruction.ImmutableInstruction
getOpcode, immutableListOf, of
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jf.dexlib2.iface.instruction.Instruction
getOpcode
-
-
-
-
Field Detail
-
OPCODE
public static final Opcode OPCODE
-
elementWidth
protected final int elementWidth
-
arrayElements
@Nonnull protected final com.google.common.collect.ImmutableList<java.lang.Number> arrayElements
-
-
Method Detail
-
of
@Nonnull public static ImmutableArrayPayload of(ArrayPayload instruction)
-
getElementWidth
public int getElementWidth()
- Specified by:
getElementWidth
in interfaceArrayPayload
-
getArrayElements
@Nonnull public java.util.List<java.lang.Number> getArrayElements()
- Specified by:
getArrayElements
in interfaceArrayPayload
-
getCodeUnits
public int getCodeUnits()
Description copied from interface:Instruction
Gets the size of this instruction.- Specified by:
getCodeUnits
in interfaceInstruction
- Overrides:
getCodeUnits
in classImmutableInstruction
- Returns:
- The size of this instruction, as a count of the number of 16-bit code units that make up this instruction.
-
getFormat
public Format getFormat()
- Specified by:
getFormat
in classImmutableInstruction
-
-