Class InstructionFactory


  • public class InstructionFactory
    extends java.lang.Object
    This class provides methods to create and reuse Instruction instances.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Instruction create​(byte opcode)
      Creates a new Instruction corresponding to the given opcode.
      static Instruction create​(byte[] code, int offset)
      Creates a new Instruction from the data in the byte array, starting at the given offset.
      static Instruction create​(byte opcode, boolean wide)
      Creates a new Instruction corresponding to the given opcode.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InstructionFactory

        public InstructionFactory()
    • Method Detail

      • create

        public static Instruction create​(byte[] code,
                                         int offset)
        Creates a new Instruction from the data in the byte array, starting at the given offset.
      • create

        public static Instruction create​(byte opcode)
        Creates a new Instruction corresponding to the given opcode.
      • create

        public static Instruction create​(byte opcode,
                                         boolean wide)
        Creates a new Instruction corresponding to the given opcode.