Class ImmutableArrayPayload
java.lang.Object
org.jf.dexlib2.immutable.instruction.ImmutableInstruction
org.jf.dexlib2.immutable.instruction.ImmutableArrayPayload
- All Implemented Interfaces:
ArrayPayload, Instruction, PayloadInstruction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.google.common.collect.ImmutableList<Number> protected final intstatic final OpcodeFields inherited from class ImmutableInstruction
opcode -
Constructor Summary
ConstructorsConstructorDescriptionImmutableArrayPayload(int elementWidth, com.google.common.collect.ImmutableList<Number> arrayElements) ImmutableArrayPayload(int elementWidth, List<Number> arrayElements) -
Method Summary
Modifier and TypeMethodDescriptionintGets the size of this instruction.intstatic ImmutableArrayPayloadof(ArrayPayload instruction) Methods inherited from class ImmutableInstruction
getOpcode, immutableListOf, ofMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Instruction
getOpcode
-
Field Details
-
OPCODE
-
elementWidth
protected final int elementWidth -
arrayElements
-
-
Constructor Details
-
ImmutableArrayPayload
-
ImmutableArrayPayload
public ImmutableArrayPayload(int elementWidth, @Nullable com.google.common.collect.ImmutableList<Number> arrayElements)
-
-
Method Details
-
of
-
getElementWidth
public int getElementWidth()- Specified by:
getElementWidthin interfaceArrayPayload
-
getArrayElements
- Specified by:
getArrayElementsin interfaceArrayPayload
-
getCodeUnits
public int getCodeUnits()Description copied from interface:InstructionGets the size of this instruction.- Specified by:
getCodeUnitsin interfaceInstruction- Overrides:
getCodeUnitsin classImmutableInstruction- Returns:
- The size of this instruction, as a count of the number of 16-bit code units that make up this instruction.
-
getFormat
- Specified by:
getFormatin classImmutableInstruction
-