|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensor.ant.javancss.CcnData
public class CcnData
A data structure that takes as input the list of Java files that were processed by JavaNCSS and the Functions instance that JavaNCSS produced as a result of processing. Constructs a data structure that maps the list of Java files to a string containing a list of comma-separated integers, each one representing a CCN value for one of the methods in that class. If no CCN data was found for that file, null is returned.
Constructor Summary | |
---|---|
CcnData(java.util.List<java.io.File> files,
Functions functions)
Constructs the File2CcnList, which is a mapping from a Java file path to a list of integers representing the cyclometric complexity values found for all of its interior methods. |
Method Summary | |
---|---|
java.lang.String |
getCcnData(java.io.File file)
Returns a string containing a comma-separated list of CCN values for the given file, or null if no CCN data is present. |
java.util.Set<java.io.File> |
getFiles()
Returns a set containing the java file paths in this CcnData instance. |
int |
getTotalLines(java.io.File file)
Returns the totallines value for file, or null if not found. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CcnData(java.util.List<java.io.File> files, Functions functions)
files
- The Java files whose CCN numbers are to be found.functions
- The Functions object contains CCN data.Method Detail |
---|
public java.lang.String getCcnData(java.io.File file)
file
- The file whose CCN data is to be retrieved.
public int getTotalLines(java.io.File file)
file
- The file whose total lines we're interested in.
public java.util.Set<java.io.File> getFiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |