-
- All Implemented Interfaces:
public abstract class ImmediateShortInstruction extends Instruction
Describes an instruction that is followed by an immediate unsigned short.
-
-
Constructor Summary
Constructors Constructor Description ImmediateShortInstruction(Opcode opcode, Integer immediateShort)
-
Method Summary
Modifier and Type Method Description IntegergetSize()final IntegergetImmediateShort()Immediate unsigned short of this instruction. final UnitsetImmediateShort(Integer immediateShort)Immediate unsigned short of this instruction. Unitread(ByteCodeInput input)Read this instruction from the given ByteCodeInput. Unitwrite(ByteCodeOutput output)Write this instruction to the given ByteCodeOutput. -
-
Method Detail
-
getImmediateShort
final Integer getImmediateShort()
Immediate unsigned short of this instruction.
-
setImmediateShort
final Unit setImmediateShort(Integer immediateShort)
Immediate unsigned short of this instruction.
-
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
-
-
-
-