-
- All Implemented Interfaces:
-
org.gjt.jclasslib.bytecode.HasWide
public final class IncrementInstruction extends ImmediateByteInstruction
Describes the iinc instruction.
-
-
Constructor Summary
Constructors Constructor Description IncrementInstruction(Boolean wide, Integer immediateByte, Integer incrementConst)IncrementInstruction(Boolean wide, Integer immediateByte)IncrementInstruction(Boolean wide)
-
Method Summary
Modifier and Type Method Description IntegergetSize()final IntegergetIncrementConst()Increment of this instruction. final UnitsetIncrementConst(Integer incrementConst)Increment of this instruction. 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.ImmediateByteInstruction
getImmediateByte, isWide, setImmediateByte, setWide -
Methods inherited from class org.gjt.jclasslib.bytecode.Instruction
getOffset, getOpcode, getPaddedSize, setOffset -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getIncrementConst
final Integer getIncrementConst()
Increment of this instruction.
-
setIncrementConst
final Unit setIncrementConst(Integer incrementConst)
Increment 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
-
-
-
-