Class Executor

java.lang.Object
javassist.bytecode.analysis.Executor
All Implemented Interfaces:
Opcode

public class Executor extends Object implements Opcode
Executor is responsible for modeling the effects of a JVM instruction on a frame.
Author:
Jason T. Greene
  • Constructor Details

  • Method Details

    • execute

      public void execute(MethodInfo method, int pos, CodeIterator iter, Frame frame, Subroutine subroutine) throws BadBytecode
      Execute the instruction, modeling the effects on the specified frame and subroutine. If a subroutine is passed, the access flags will be modified if this instruction accesses the local variable table.
      Parameters:
      method - the method containing the instruction
      pos - the position of the instruction in the method
      iter - the code iterator used to find the instruction
      frame - the frame to modify to represent the result of the instruction
      subroutine - the optional subroutine this instruction belongs to.
      Throws:
      BadBytecode - if the bytecode violates the jvm spec