net.sourceforge.groboutils.codecoverage.v2.module
Class DefaultAnalysisMetaData

java.lang.Object
  extended bynet.sourceforge.groboutils.codecoverage.v2.module.DefaultAnalysisMetaData
All Implemented Interfaces:
IAnalysisMetaData

public class DefaultAnalysisMetaData
extends java.lang.Object
implements IAnalysisMetaData

Contains data necessary for storing the meta-data associated with a specific marked bytecode instruction.

There is an optional "weight" value which can associate a number from -128 to 127 for this particular instruction. This will create a weighted coverage value to indicate on each summary level how important it is for this particular bytecode to be executed. If the analysis module doesn't use weights, then this should return the same value for all instructions.

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

Constructor Summary
DefaultAnalysisMetaData(java.lang.String c, java.lang.String nc, byte w)
           
 
Method Summary
 java.lang.String getCoveredFormattedText()
          Returns the formatted, localized text for a report on this instruction if it was covered during the runtime execution.
 byte getInstructionWeight()
          Returns any value in the range of a byte that assigns an importance "weight" to this instruction.
 java.lang.String getNotCoveredFormattedText()
          Returns the formatted, localized text for a report on this instruction if it was not covered during the runtime execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAnalysisMetaData

public DefaultAnalysisMetaData(java.lang.String c,
                               java.lang.String nc,
                               byte w)
Method Detail

getCoveredFormattedText

public java.lang.String getCoveredFormattedText()
Returns the formatted, localized text for a report on this instruction if it was covered during the runtime execution.

Specified by:
getCoveredFormattedText in interface IAnalysisMetaData
Returns:
formatted, localized, human-readable report

getNotCoveredFormattedText

public java.lang.String getNotCoveredFormattedText()
Returns the formatted, localized text for a report on this instruction if it was not covered during the runtime execution.

Specified by:
getNotCoveredFormattedText in interface IAnalysisMetaData
Returns:
formatted, localized, human-readable report

getInstructionWeight

public byte getInstructionWeight()
Returns any value in the range of a byte that assigns an importance "weight" to this instruction. If weights are not used by the analysis module, then this needs to return the same value for every instruction.

Specified by:
getInstructionWeight in interface IAnalysisMetaData
Returns:
an instruction weight value.


Copyright © 2001-2003 by The GroboUtils Project