proguard.classfile.instruction
Class SwitchInstruction
java.lang.Object
proguard.classfile.instruction.Instruction
proguard.classfile.instruction.SwitchInstruction
- Direct Known Subclasses:
- LookUpSwitchInstruction, TableSwitchInstruction
public abstract class SwitchInstruction
- extends Instruction
This Instruction represents a simple instruction without variable arguments
or constant pool references.
|
Constructor Summary |
SwitchInstruction()
Creates an uninitialized SwitchInstruction. |
SwitchInstruction(byte opcode,
int defaultOffset,
int[] jumpOffsets)
Creates a new SwitchInstruction with the given arguments. |
| Methods inherited from class proguard.classfile.instruction.Instruction |
accept, canonicalOpcode, getName, isCategory2, isWide, length, readByte, readInfo, readInt, readShort, readSignedByte, readSignedShort, readSignedValue, readValue, shrink, stackPopCount, stackPushCount, write, write, writeByte, writeInfo, writeInt, writeShort, writeSignedByte, writeSignedShort, writeSignedValue, writeValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
defaultOffset
public int defaultOffset
jumpOffsets
public int[] jumpOffsets
SwitchInstruction
public SwitchInstruction()
- Creates an uninitialized SwitchInstruction.
SwitchInstruction
public SwitchInstruction(byte opcode,
int defaultOffset,
int[] jumpOffsets)
- Creates a new SwitchInstruction with the given arguments.
copy
public SwitchInstruction copy(SwitchInstruction switchInstruction)
- Copies the given instruction into this instruction.
- Parameters:
switchInstruction - the instruction to be copied.
- Returns:
- this instruction.
toString
public java.lang.String toString(int offset)
- Description copied from class:
Instruction
- Returns a description of the instruction, at the given offset.
- Overrides:
toString in class Instruction
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object