Class MethodEditor.Output
java.lang.Object
com.ibm.wala.shrike.shrikeBT.MethodEditor.Output
- Enclosing class:
MethodEditor
Output is the interface that patches use to emit their code into a method body.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 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
Emit an instruction at the current point in the code. -
emit
Emit an instruction with some exception handlers at the current point in the code. -
emit
Emit a list of instructions at the current point in the code. -
emit
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.
-