-
- All Implemented Interfaces:
public final class LookupSwitchInstruction extends PaddedInstruction
Describes the lookupswitch instruction.
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerdefaultOffsetprivate List<MatchOffsetPair>matchOffsetPairsprivate final Integersizeprivate Integeroffsetprivate final Opcodeopcode
-
Constructor Summary
Constructors Constructor Description LookupSwitchInstruction()
-
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 List<MatchOffsetPair>getMatchOffsetPairs()Match-offset pairs of the branch of this instruction as a java.util.List of MatchOffsetPair elements. final UnitsetMatchOffsetPairs(List<MatchOffsetPair> matchOffsetPairs)Match-offset pairs of the branch of this instruction as a java.util.List of MatchOffsetPair elements. 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.
-
getMatchOffsetPairs
final List<MatchOffsetPair> getMatchOffsetPairs()
Match-offset pairs of the branch of this instruction as a java.util.List of MatchOffsetPair elements.
-
setMatchOffsetPairs
final Unit setMatchOffsetPairs(List<MatchOffsetPair> matchOffsetPairs)
Match-offset pairs of the branch of this instruction as a java.util.List of MatchOffsetPair elements.
-
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
-
-
-
-