Class BuilderArrayPayload
- java.lang.Object
-
- org.jf.dexlib2.builder.BuilderInstruction
-
- org.jf.dexlib2.builder.instruction.BuilderArrayPayload
-
- All Implemented Interfaces:
ArrayPayload
,Instruction
,PayloadInstruction
public class BuilderArrayPayload extends BuilderInstruction implements ArrayPayload
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.Number>
arrayElements
protected int
elementWidth
static Opcode
OPCODE
-
Fields inherited from class org.jf.dexlib2.builder.BuilderInstruction
opcode
-
-
Constructor Summary
Constructors Constructor Description BuilderArrayPayload(int elementWidth, java.util.List<java.lang.Number> arrayElements)
-
Method Summary
All 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()
-
Methods inherited from class org.jf.dexlib2.builder.BuilderInstruction
getLocation, getOpcode
-
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 java.util.List<java.lang.Number> arrayElements
-
-
Method Detail
-
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 classBuilderInstruction
- 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 classBuilderInstruction
-
-