Class MethodEditor.Output

java.lang.Object
com.ibm.wala.shrike.shrikeBT.MethodEditor.Output
Enclosing class:
MethodEditor

public static final class MethodEditor.Output extends Object
Output is the interface that patches use to emit their code into a method body.
  • Method Details

    • emitLabel

      public void emitLabel(int label)
      Emit a label definition at the current point in the code. The label must have been previously allocated using MethodEditor.allocateLabel.
    • emit

      public void emit(Instruction i)
      Emit an instruction at the current point in the code.
    • emit

      public void emit(Instruction i, ExceptionHandler[] handlers)
      Emit an instruction with some exception handlers at the current point in the code.
    • emit

      public void emit(Instruction[] instrs)
      Emit a list of instructions at the current point in the code.
    • emit

      public void emit(Instruction[] instrs, ExceptionHandler[] handlers)
      Emit a list of instructions with some exception handlers at the current point in the code. All the instructions are covered by all the handlers.