|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cobertura.reporting.Util
Constructor Summary | |
Util()
|
Method Summary | |
static double |
getCCN(java.io.File file,
boolean recursive)
Calculates the code complexity number for a given class. |
private static java.util.Vector |
getListOfFiles(java.io.File file,
boolean recursive)
Create a Vector containing the file names of
Java source code. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Util()
Method Detail |
public static double getCCN(java.io.File file, boolean recursive)
file
- The source of a Java class for which you want
to calculate the complexity, or a directory containing
Java source files for which you want to calculate the
complexity.recursive
- If file is a directory, this parameter is
used to decide whether to only list the files in the
given directory, or to list all files in all
subdirectories of the given directory.
private static java.util.Vector getListOfFiles(java.io.File file, boolean recursive)
Vector
containing the file names of
Java source code. If the given file parameter is a regular
file, then the return value only contains the absolute
path of this file. However, if the given file parameter
is a directory, this vector contains absolute paths to all
files under this directory and all subdirectories.
file
- A Java source file or a directory containing
Java source files.
String
s that
are absolute paths to Java source files.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |