Package 

Class ImmediateByteInstruction

  • 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Integer getSize()
      Boolean isWide() Indicates whether the instruction is subject to a wide instruction or not.
      Unit setWide(Boolean isWide) Indicates whether the instruction is subject to a wide instruction or not.
      final Integer getImmediateByte() Immediate unsigned byte of this instruction.
      final Unit setImmediateByte(Integer immediateByte) Immediate unsigned byte of this instruction.
      Unit read(ByteCodeInput input) Read this instruction from the given ByteCodeInput.
      Unit write(ByteCodeOutput output) Write this instruction to the given ByteCodeOutput.
      • 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
    • Constructor Detail

      • ImmediateByteInstruction

        ImmediateByteInstruction(Opcode opcode, Boolean isWide, Integer immediateByte)
    • Method Detail

      • isWide

         Boolean isWide()

        Indicates whether the instruction is subject to a wide instruction or not.

      • setWide

         Unit setWide(Boolean isWide)

        Indicates whether the instruction is subject to a wide instruction or not.

      • 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