Package com.ibm.wala.shrikeBT
Class MethodEditor.Output
- java.lang.Object
-
- com.ibm.wala.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
emit(Instruction i)
Emit an instruction at the current point in the code.void
emit(Instruction[] instrs)
Emit a list of instructions at the current point in the code.void
emit(Instruction[] instrs, ExceptionHandler[] handlers)
Emit a list of instructions with some exception handlers at the current point in the code.void
emit(Instruction i, ExceptionHandler[] handlers)
Emit an instruction with some exception handlers at the current point in the code.void
emitLabel(int label)
Emit a label definition at the current point in the code.
-
-
-
Method Detail
-
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.
-
-