net.sourceforge.groboutils.codecoverage.v2
Interface IAnalysisModule

All Known Implementing Classes:
BranchCountMeasure, BytecodeCountMeasure, CallPairMeasure, FunctionMeasure, LineCountMeasure

public interface IAnalysisModule

Processes a method for coverage analysis. The analysis should mark certain bytecode instructions with IAnalysisMetaData for report generation. Each module generates data that is used for one specific measure type, such as source line coverage, or branch coverage. The coverage amount is based on the number of marks added verses the number of marks (and which ones) encountered during a run.

Since:
December 15, 2002
Version:
$Date: 2003/02/10 22:51:25 $
Author:
Matt Albrecht groboclown@users.sourceforge.net
See Also:
IAnalysisMetaData

Method Summary
 void analyze(IMethodCode method)
          Perform the analysis on the method.
 java.lang.String getMeasureName()
          Returns the human-readable name of the measure.
 java.lang.String getMeasureUnit()
          Returns the unit name for this particular coverage measure.
 java.lang.String getMimeEncoding()
          Returns the text format used in meta-data formatted text.
 

Method Detail

getMeasureName

public java.lang.String getMeasureName()
Returns the human-readable name of the measure.


getMeasureUnit

public java.lang.String getMeasureUnit()
Returns the unit name for this particular coverage measure.


getMimeEncoding

public java.lang.String getMimeEncoding()
Returns the text format used in meta-data formatted text. This should be the mime encoding type, such as "text/plain" or "text/html".


analyze

public void analyze(IMethodCode method)
Perform the analysis on the method. method should never be null, so null checking isn't necessary; NullPointerExceptions are an acceptable exception to be thrown from this method.



Copyright © 2001-2003 by The GroboUtils Project