| java.lang.Object net.sourceforge.groboutils.codecoverage.v2.compiler.DefaultMethodCode
DefaultMethodCode | public class DefaultMethodCode implements IMethodCode(Code) | | Implements the per-module interface to the method's code and marking
the code. Controls the module's index and the current module's mark
index for this method.
author: Matt Albrecht groboclown@users.sourceforge.net author: Stefano Turri (stefano.turri AT it.ibm.com) version: $Date: 2004/04/20 23:12:06 $ since: December 17, 2002 |
getClassName | public String getClassName()(Code) | | A helper to get the class name.
the class name |
getInstructionAt | public Instruction getInstructionAt(int index)(Code) | | Returns the bytecode instruction at the given index. If the index
is out of range (< 0 or >= getInstructionCount()),
then a IndexOutOfBoundsException is thrown.
Parameters: index - the 0-based index of the method's instruction list the instruction at index |
getInstructionCount | public int getInstructionCount()(Code) | | Returns the number of bytecode instructions in the method.
the number of bytecode instructions |
getLineNumberTable | public LineNumberTable getLineNumberTable()(Code) | | Returns the line number table for the original BCEL method object.
the LineNumberTable, or null if there isn't onefor this method. |
getMethodName | public String getMethodName()(Code) | | A helper to get the method name.
the method name |
getOriginalMethod | public Method getOriginalMethod()(Code) | | Returns the original BCEL Method object.
the original BCEL Method object |
markInstruction | public synchronized void markInstruction(int index, IAnalysisMetaData meta)(Code) | | Marks an instruction for coverage analysis. If the index
is out of range (< 0 or > getInstructionCount()),
then a IndexOutOfBoundsException is thrown. Marks are
added before the instruction at the given index is executed. Note that
to mark the end of the method, you should use index equal to
getInstructionCount()
Parameters: index - the 0-based index of the method's instruction list Parameters: meta - meta-data the analysis module records in association withthe mark. This cannot be null. |
toString | public String toString()(Code) | | Output a friendly version of the object.
|
|
|