|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.groboutils.codecoverage.v2.datastore.ClassRecord
Contains data associated with a parsed class. Each class is associated with a collection of analysis modules' marks.
Constructor Summary | |
ClassRecord(java.lang.String className,
long classCRC,
java.lang.String sourceFileName,
java.lang.String[] methSigs,
AnalysisModuleSet ams)
|
Method Summary | |
void |
addMark(MarkRecord mr)
Adds a mark record, and ensures that it is unique upon insertion. |
AnalysisModuleSet |
getAnalysisModuleSet()
Returns a copy of the internal analysis module set. |
long |
getClassCRC()
Returns the cyclic redundancy check (CRC) for the class in this record. |
java.lang.String |
getClassName()
Gets the name of the corresponding class for this record. |
java.lang.String |
getClassSignature()
Returns the implementation-specific class signature for the class this record refers to. |
MarkRecord[] |
getMarksForAnalysisModule(IAnalysisModule am)
|
MarkRecord[] |
getMarksForAnalysisModule(java.lang.String measureName)
|
java.lang.String |
getMethodAt(short index)
Returns the method signature at the given index. |
int |
getMethodCount()
Returns the total number of method signatures for this class. |
short |
getMethodIndex(java.lang.String methodSignature)
Returns the index (as a short) for the given method signature. |
java.lang.String[] |
getMethods()
Returns a list of known method signatures for this class. |
java.lang.String |
getSourceFileName()
Returns the name of the Java source file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassRecord(java.lang.String className, long classCRC, java.lang.String sourceFileName, java.lang.String[] methSigs, AnalysisModuleSet ams)
Method Detail |
public java.lang.String getClassName()
public long getClassCRC()
public java.lang.String getClassSignature()
public java.lang.String getSourceFileName()
public AnalysisModuleSet getAnalysisModuleSet()
public java.lang.String[] getMethods()
public short getMethodIndex(java.lang.String methodSignature)
methodSignature
- the signature to find the corresponding index
for in this class.
java.lang.IllegalArgumentException
- if methodSignature is
null.public int getMethodCount()
public java.lang.String getMethodAt(short index)
index
- the index of the method signature to find.
java.lang.IllegalArgumentException
- if index is not within the
bounds of [0 .. getMethodCount()-1 ].public void addMark(MarkRecord mr)
mr
- the new mark to add. Adding this mark will complete its
internal data structure.public MarkRecord[] getMarksForAnalysisModule(java.lang.String measureName)
public MarkRecord[] getMarksForAnalysisModule(IAnalysisModule am)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |