| java.lang.Object net.sourceforge.groboutils.codecoverage.v2.compiler.MarkedInstruction
MarkedInstruction | public class MarkedInstruction (Code) | | Contains one original method instruction, along with all the analysis
module marks for this instruction.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2004/04/15 05:48:25 $ since: December 17, 2002 |
Constructor Summary | |
| MarkedInstruction(short methodIndex, int classSigPoolIndex, int staticMethodPoolIndex, InstructionHandle instr) |
Method Summary | |
public void | addMark(short measureIndex, short markIndex) Mark this instruction with the given measure and mark indicies; the
method index is pre-defined by the particular method this instruction
resides in. | InstructionHandle | getHandle() Retrieve the handle this instruction represents. | public Instruction | getInstruction() Retrieve the instruction represented by this mark. | public int | getInstructionPosition() | InstructionList | getMarkedList() Retrieve the list of all the marks (if there are any active ones),
but does not add the original instruction (that is for the owner to
know where it goes - before or after). |
MarkedInstruction | MarkedInstruction(short methodIndex, int classSigPoolIndex, int staticMethodPoolIndex, InstructionHandle instr)(Code) | | throws: IllegalStateException - if the class file has already beenmodified (identified by a class name field). |
addMark | public void addMark(short measureIndex, short markIndex)(Code) | | Mark this instruction with the given measure and mark indicies; the
method index is pre-defined by the particular method this instruction
resides in.
|
getHandle | InstructionHandle getHandle()(Code) | | Retrieve the handle this instruction represents.
|
getInstruction | public Instruction getInstruction()(Code) | | Retrieve the instruction represented by this mark.
|
getInstructionPosition | public int getInstructionPosition()(Code) | | |
getMarkedList | InstructionList getMarkedList()(Code) | | Retrieve the list of all the marks (if there are any active ones),
but does not add the original instruction (that is for the owner to
know where it goes - before or after). If there are no active
marks, then null will be returned. After this has been
called, all the active marks will be removed (assuming that they
have been added to the modified method instruction list).
|
|
|