public class ImmutableSparseSwitchPayload extends ImmutableInstruction implements SparseSwitchPayload
| Modifier and Type | Field and Description |
|---|---|
static Opcode |
OPCODE |
protected com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> |
switchElements |
opcode| Constructor and Description |
|---|
ImmutableSparseSwitchPayload(com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> switchElements) |
ImmutableSparseSwitchPayload(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 ImmutableSparseSwitchPayload |
of(SparseSwitchPayload 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 ImmutableSparseSwitchPayload(@Nullable
java.util.List<? extends SwitchElement> switchElements)
public ImmutableSparseSwitchPayload(@Nullable
com.google.common.collect.ImmutableList<? extends ImmutableSwitchElement> switchElements)
@Nonnull public static ImmutableSparseSwitchPayload of(SparseSwitchPayload instruction)
@Nonnull public java.util.List<? extends SwitchElement> getSwitchElements()
getSwitchElements in interface SwitchPayloadpublic int getCodeUnits()
InstructiongetCodeUnits in interface InstructiongetCodeUnits in class ImmutableInstructionpublic Format getFormat()
getFormat in class ImmutableInstruction