|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.spinellis.ckjm.MetricsFilter
public class MetricsFilter
Convert a list of classes into their metrics. Process standard input lines or command line arguments containing a class file name or a jar file name, followed by a space and a class file name. Display on the standard output the name of each class, followed by its six Chidamber Kemerer metrics: WMC, DIT, NOC, CBO, RFC, LCOM
ClassMetrics
Constructor Summary | |
---|---|
MetricsFilter()
|
Method Summary | |
---|---|
static boolean |
includeAll()
Return true if the measurements should include all classes |
static boolean |
isJdkIncluded()
Return true if the measurements should include calls to the Java JDK into account |
static void |
main(java.lang.String[] argv)
The filter's main body. |
(package private) static void |
processClass(ClassMetricsContainer cm,
java.lang.String clspec)
Load and parse the specified class. |
static void |
runMetrics(java.lang.String[] files,
CkjmOutputHandler outputHandler)
The interface for other Java based applications. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetricsFilter()
Method Detail |
---|
public static boolean isJdkIncluded()
public static boolean includeAll()
static void processClass(ClassMetricsContainer cm, java.lang.String clspec)
public static void runMetrics(java.lang.String[] files, CkjmOutputHandler outputHandler)
files
- Class files to be analyzedoutputHandler
- An implementation of the CkjmOutputHandler interfacepublic static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |