public class ImmutablePackedSwitchPayload extends ImmutableInstruction implements PackedSwitchPayload
| Modifier and Type | Field and Description |
|---|---|
static Opcode |
OPCODE |
protected com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> |
switchElements |
opcode| Constructor and Description |
|---|
ImmutablePackedSwitchPayload(com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> switchElements) |
ImmutablePackedSwitchPayload(java.util.List<? extends SwitchElement> switchElements) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCodeUnits()
Gets the size of this instruction.
|
Format |
getFormat() |
java.util.List<? extends SwitchElement> |
getSwitchElements() |
static ImmutablePackedSwitchPayload |
of(PackedSwitchPayload instruction) |
getOpcode, immutableListOf, ofclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOpcodepublic static final Opcode OPCODE
@Nonnull protected final com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> switchElements
public ImmutablePackedSwitchPayload(@Nullable
java.util.List<? extends SwitchElement> switchElements)
public ImmutablePackedSwitchPayload(@Nullable
com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> switchElements)
@Nonnull public static ImmutablePackedSwitchPayload of(PackedSwitchPayload instruction)
@Nonnull public java.util.List<? extends SwitchElement> getSwitchElements()
getSwitchElements in interface PackedSwitchPayloadgetSwitchElements in interface SwitchPayloadpublic int getCodeUnits()
InstructiongetCodeUnits in interface InstructiongetCodeUnits in class ImmutableInstructionpublic Format getFormat()
getFormat in class ImmutableInstruction