-
- All Implemented Interfaces:
-
org.gjt.jclasslib.bytecode.HasWide
public abstract class ImmediateByteInstruction extends Instruction implements HasWide
Base class for instructions that are followed by an immediate unsigned byte.
-
-
Constructor Summary
Constructors Constructor Description ImmediateByteInstruction(Opcode opcode, Boolean isWide, Integer immediateByte)
-
Method Summary
Modifier and Type Method Description IntegergetSize()BooleanisWide()Indicates whether the instruction is subject to a wide instruction or not. UnitsetWide(Boolean isWide)Indicates whether the instruction is subject to a wide instruction or not. final IntegergetImmediateByte()Immediate unsigned byte of this instruction. final UnitsetImmediateByte(Integer immediateByte)Immediate unsigned byte 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
-
setWide
Unit setWide(Boolean isWide)
Indicates whether the instruction is subject to a wide instruction or not.
-
getImmediateByte
final Integer getImmediateByte()
Immediate unsigned byte of this instruction.
-
setImmediateByte
final Unit setImmediateByte(Integer immediateByte)
Immediate unsigned byte 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
-
-
-
-