-
- All Implemented Interfaces:
public final class TableSwitchInstruction extends PaddedInstruction
Describes the tableswitch instruction.
-
-
Constructor Summary
Constructors Constructor Description TableSwitchInstruction()
-
Method Summary
Modifier and Type Method Description final IntegergetDefaultOffset()Default offset of the branch of this instruction. final UnitsetDefaultOffset(Integer defaultOffset)Default offset of the branch of this instruction. final IntegergetLowByte()Lower bound for the table switch. final UnitsetLowByte(Integer lowByte)Lower bound for the table switch. final IntegergetHighByte()Upper bound for the table switch. final UnitsetHighByte(Integer highByte)Upper bound for the table switch. final IntArraygetJumpOffsets()Array of relative jump offsets for the table switch. final UnitsetJumpOffsets(IntArray jumpOffsets)Array of relative jump offsets for the table switch. IntegergetSize()Unitread(ByteCodeInput input)Read this instruction from the given ByteCodeInput. Unitwrite(ByteCodeOutput output)Write this instruction to the given ByteCodeOutput. -
Methods inherited from class org.gjt.jclasslib.bytecode.Instruction
getOffset, getOpcode, setOffset -
Methods inherited from class org.gjt.jclasslib.bytecode.PaddedInstruction
getPaddedSize -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDefaultOffset
final Integer getDefaultOffset()
Default offset of the branch of this instruction.
-
setDefaultOffset
final Unit setDefaultOffset(Integer defaultOffset)
Default offset of the branch of this instruction.
-
getLowByte
final Integer getLowByte()
Lower bound for the table switch.
-
setLowByte
final Unit setLowByte(Integer lowByte)
Lower bound for the table switch.
-
getHighByte
final Integer getHighByte()
Upper bound for the table switch.
-
setHighByte
final Unit setHighByte(Integer highByte)
Upper bound for the table switch.
-
getJumpOffsets
final IntArray getJumpOffsets()
Array of relative jump offsets for the table switch.
-
setJumpOffsets
final Unit setJumpOffsets(IntArray jumpOffsets)
Array of relative jump offsets for the table switch.
-
read
Unit read(ByteCodeInput input)
Read this instruction from the given ByteCodeInput. Expects ByteCodeInput to be in JVM class file format and just before a instruction of this kind.
- Parameters:
input- the ByteCodeInput from which to read
-
write
Unit write(ByteCodeOutput output)
Write this instruction to the given ByteCodeOutput.
- Parameters:
output- the ByteCodeOutput to which to write
-
-
-
-