public class LookUpSwitchInstruction extends SwitchInstruction
| Modifier and Type | Field and Description |
|---|---|
int[] |
cases |
defaultOffset, jumpOffsetsopcode| Constructor and Description |
|---|
LookUpSwitchInstruction()
Creates an uninitialized LookUpSwitchInstruction.
|
LookUpSwitchInstruction(byte opcode,
int defaultOffset,
int[] cases,
int[] jumpOffsets)
Creates a new LookUpSwitchInstruction with the given arguments.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int offset,
InstructionVisitor instructionVisitor)
Accepts the given visitor.
|
LookUpSwitchInstruction |
copy(LookUpSwitchInstruction lookUpSwitchInstruction)
Copies the given instruction into this instruction.
|
int |
length(int offset)
Returns the length in bytes of the instruction.
|
protected void |
readInfo(byte[] code,
int offset)
Reads the data following the instruction opcode.
|
Instruction |
shrink()
Shrinks this instruction to its shortest possible form.
|
protected void |
writeInfo(byte[] code,
int offset)
Writes data following the instruction opcode.
|
copy, toString, toStringcanonicalOpcode, getName, isCategory2, isWide, mayThrowExceptions, readByte, readInt, readShort, readSignedByte, readSignedShort, readSignedValue, readValue, stackPopCount, stackPushCount, write, write, writeByte, writeInt, writeShort, writeSignedByte, writeSignedShort, writeSignedValue, writeValuepublic LookUpSwitchInstruction()
public LookUpSwitchInstruction(byte opcode,
int defaultOffset,
int[] cases,
int[] jumpOffsets)
public LookUpSwitchInstruction copy(LookUpSwitchInstruction lookUpSwitchInstruction)
lookUpSwitchInstruction - the instruction to be copied.public Instruction shrink()
Instructionshrink in class Instructionprotected void readInfo(byte[] code,
int offset)
InstructionreadInfo in class Instructionprotected void writeInfo(byte[] code,
int offset)
InstructionwriteInfo in class Instructionpublic int length(int offset)
Instructionlength in class Instructionpublic void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, InstructionVisitor instructionVisitor)
Instructionaccept in class InstructionCopyright © 2015. All Rights Reserved.