Class AbstractInstruction

java.lang.Object
org.glavo.classfile.impl.AbstractElement
org.glavo.classfile.impl.AbstractInstruction
All Implemented Interfaces:
ClassFileElement, CodeElement, Instruction
Direct Known Subclasses:
AbstractInstruction.BoundInstruction, AbstractInstruction.UnboundInstruction

public abstract sealed class AbstractInstruction extends AbstractElement implements Instruction permits AbstractInstruction.UnboundInstruction, AbstractInstruction.BoundInstruction
  • Constructor Details

    • AbstractInstruction

      public AbstractInstruction(Opcode op, int size)
  • Method Details

    • opcode

      public Opcode opcode()
      Description copied from interface: Instruction
      Returns the opcode of this instruction.
      Specified by:
      opcode in interface Instruction
      Returns:
      the opcode of this instruction
    • sizeInBytes

      public int sizeInBytes()
      Description copied from interface: Instruction
      Returns the size in bytes of this instruction.
      Specified by:
      sizeInBytes in interface Instruction
      Returns:
      the size in bytes of this instruction
    • writeTo

      public abstract void writeTo(DirectCodeBuilder writer)
      Overrides:
      writeTo in class AbstractElement