public class ImmutableArrayPayload extends ImmutableInstruction implements ArrayPayload
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableList<java.lang.Number> |
arrayElements |
protected int |
elementWidth |
static Opcode |
OPCODE |
opcode| Constructor and Description |
|---|
ImmutableArrayPayload(int elementWidth,
com.google.common.collect.ImmutableList<java.lang.Number> arrayElements) |
ImmutableArrayPayload(int elementWidth,
java.util.List<java.lang.Number> arrayElements) |
| Modifier and Type | Method and 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) |
getOpcode, immutableListOf, ofclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOpcodepublic static final Opcode OPCODE
protected final int elementWidth
@Nonnull protected final com.google.common.collect.ImmutableList<java.lang.Number> arrayElements
public ImmutableArrayPayload(int elementWidth,
@Nullable
java.util.List<java.lang.Number> arrayElements)
public ImmutableArrayPayload(int elementWidth,
@Nullable
com.google.common.collect.ImmutableList<java.lang.Number> arrayElements)
@Nonnull public static ImmutableArrayPayload of(ArrayPayload instruction)
public int getElementWidth()
getElementWidth in interface ArrayPayload@Nonnull public java.util.List<java.lang.Number> getArrayElements()
getArrayElements in interface ArrayPayloadpublic int getCodeUnits()
InstructiongetCodeUnits in interface InstructiongetCodeUnits in class ImmutableInstructionpublic Format getFormat()
getFormat in class ImmutableInstruction