Class InstructionFactory

java.lang.Object
proguard.classfile.instruction.InstructionFactory

public class InstructionFactory extends Object
This class provides methods to create and reuse Instruction instances.
  • Constructor Details

    • InstructionFactory

      public InstructionFactory()
  • Method Details

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