|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.instruction.Instruction
proguard.classfile.instruction.SwitchInstruction
proguard.classfile.instruction.LookUpSwitchInstruction
public class LookUpSwitchInstruction
This Instruction represents a simple instruction without variable arguments or constant pool references.
| Field Summary | |
|---|---|
int[] |
cases
|
| Fields inherited from class proguard.classfile.instruction.SwitchInstruction |
|---|
defaultOffset, jumpOffsets |
| Fields inherited from class proguard.classfile.instruction.Instruction |
|---|
opcode |
| Constructor Summary | |
|---|---|
LookUpSwitchInstruction()
Creates an uninitialized LookUpSwitchInstruction. |
|
LookUpSwitchInstruction(byte opcode,
int defaultOffset,
int[] cases,
int[] jumpOffsets)
Creates a new LookUpSwitchInstruction with the given arguments. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class proguard.classfile.instruction.SwitchInstruction |
|---|
copy, toString, toString |
| Methods inherited from class proguard.classfile.instruction.Instruction |
|---|
canonicalOpcode, getName, isCategory2, isWide, readByte, readInt, readShort, readSignedByte, readSignedShort, readSignedValue, readValue, stackPopCount, stackPushCount, write, write, writeByte, writeInt, writeShort, writeSignedByte, writeSignedShort, writeSignedValue, writeValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int[] cases
| Constructor Detail |
|---|
public LookUpSwitchInstruction()
public LookUpSwitchInstruction(byte opcode,
int defaultOffset,
int[] cases,
int[] jumpOffsets)
| Method Detail |
|---|
public LookUpSwitchInstruction copy(LookUpSwitchInstruction lookUpSwitchInstruction)
lookUpSwitchInstruction - the instruction to be copied.
public Instruction shrink()
Instruction
shrink in class Instruction
protected void readInfo(byte[] code,
int offset)
Instruction
readInfo in class Instruction
protected void writeInfo(byte[] code,
int offset)
Instruction
writeInfo in class Instructionpublic int length(int offset)
Instruction
length in class Instruction
public void accept(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int offset,
InstructionVisitor instructionVisitor)
Instruction
accept in class Instruction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||