| java.lang.Object net.sourceforge.groboutils.codecoverage.v2.datastore.ClassRecord
ClassRecord | public class ClassRecord (Code) | | Contains data associated with a parsed class. Each class is associated
with a collection of analysis modules' marks.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2004/04/15 05:48:26 $ since: December 15, 2002 |
addMark | public void addMark(MarkRecord mr)(Code) | | Adds a mark record, and ensures that it is unique upon insertion.
Parameters: mr - the new mark to add. Adding this mark will complete itsinternal data structure. |
getAnalysisModuleSet | public AnalysisModuleSet getAnalysisModuleSet()(Code) | | Returns a copy of the internal analysis module set.
a copy of the set of analysis modules. |
getClassCRC | public long getClassCRC()(Code) | | Returns the cyclic redundancy check (CRC) for the class in this record.
the class CRC. |
getClassName | public String getClassName()(Code) | | Gets the name of the corresponding class for this record.
the class name. |
getClassSignature | public String getClassSignature()(Code) | | Returns the implementation-specific class signature for the class this
record refers to. It should be a String which is unique for this class,
even if multiple class files have the same class name (note that if the
class files are identical, it makes perfect sense to return identical
signatures).
the unique signature for the class in this record. |
getMethodAt | public String getMethodAt(short index)(Code) | | Returns the method signature at the given index.
Parameters: index - the index of the method signature to find. the method signature at index index. exception: IllegalArgumentException - if index is not within thebounds of [0 .. getMethodCount()-1 ]. |
getMethodCount | public int getMethodCount()(Code) | | Returns the total number of method signatures for this class.
the method signature count. |
getMethodIndex | public short getMethodIndex(String methodSignature)(Code) | | Returns the index (as a short) for the given method signature. If the
signature is not registered, then -1 will be returned.
Parameters: methodSignature - the signature to find the corresponding indexfor in this class. the index for methodSignature if it is in this method,or -1 if it is not in the list. exception: IllegalArgumentException - if methodSignature isnull. |
getMethods | public String[] getMethods()(Code) | | Returns a list of known method signatures for this class.
all method signatures known for this class, in the correctsorted order. |
getSourceFileName | public String getSourceFileName()(Code) | | Returns the name of the Java source file.
the source file name |
|
|