| net.sourceforge.groboutils.codecoverage.v2.IMethodCode
All known Subclasses: net.sourceforge.groboutils.codecoverage.v2.compiler.DefaultMethodCode,
IMethodCode | public interface IMethodCode (Code) | | Contains the BCEL bytecode for a method, and provides helper methods for
generating the marks for certain bytecode instructions.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2004/04/15 05:48:25 $ since: December 15, 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 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.
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. exception: IllegalArgumentException - if meta is null. exception: IndexOutOfBoundsException - if index is not withinthe valid range. |
|
|