A C E G H I M P R S T V

A

addAfferentCoupling(String) - Method in class gr.spinellis.ckjm.ClassMetrics
Add a class to the set of classes that depend on this class

C

CkjmOutputHandler - Interface in gr.spinellis.ckjm
Interface of output handlers Use this interface to couple your tool to CKJM.
CkjmTask - Class in gr.spinellis.ckjm.ant
Ant task definition for the CKJM metrics tool.
CkjmTask() - Constructor for class gr.spinellis.ckjm.ant.CkjmTask
 
ClassMetrics - Class in gr.spinellis.ckjm
Store details needed for calculating a class's Chidamber-Kemerer metrics.
ClassMetrics() - Constructor for class gr.spinellis.ckjm.ClassMetrics
Default constructor.
ClassMetricsContainer - Class in gr.spinellis.ckjm
A container of class metrics mapping class names to their metrics.
ClassMetricsContainer() - Constructor for class gr.spinellis.ckjm.ClassMetricsContainer
 
className(Type) - Static method in class gr.spinellis.ckjm.ClassVisitor
Return a class name associated with a type.
ClassVisitor - Class in gr.spinellis.ckjm
Visit a class updating its Chidamber-Kemerer metrics.
ClassVisitor(JavaClass, ClassMetricsContainer) - Constructor for class gr.spinellis.ckjm.ClassVisitor
 
createExtdirs() - Method in class gr.spinellis.ckjm.ant.CkjmTask
Adds a path to extdirs.

E

end() - Method in class gr.spinellis.ckjm.ClassVisitor
Do final accounting at the end of the visit.
execute() - Method in class gr.spinellis.ckjm.ant.CkjmTask
Executes the CKJM Ant Task.

G

getCa() - Method in class gr.spinellis.ckjm.ClassMetrics
Return the class's afferent couplings metric
getCbo() - Method in class gr.spinellis.ckjm.ClassMetrics
Return the coupling between object classes metric
getDit() - Method in class gr.spinellis.ckjm.ClassMetrics
Return the depth of the class's inheritance tree
getExtdirs() - Method in class gr.spinellis.ckjm.ant.CkjmTask
Gets the extension directories that will be used by ckjm.
getLcom() - Method in class gr.spinellis.ckjm.ClassMetrics
Return the class's lack of cohesion in methods metric
getMetrics(String) - Method in class gr.spinellis.ckjm.ClassMetricsContainer
Return a class's metrics
getMetrics() - Method in class gr.spinellis.ckjm.ClassVisitor
Return the class's metrics container.
getNoc() - Method in class gr.spinellis.ckjm.ClassMetrics
Return the number of children
getNpm() - Method in class gr.spinellis.ckjm.ClassMetrics
Return the number of public methods metric
getRfc() - Method in class gr.spinellis.ckjm.ClassMetrics
Return the Response for a Class
getWmc() - Method in class gr.spinellis.ckjm.ClassMetrics
Return the weighted methods per class metric
gr.spinellis.ckjm - package gr.spinellis.ckjm
 
gr.spinellis.ckjm.ant - package gr.spinellis.ckjm.ant
 

H

handleClass(String, ClassMetrics) - Method in class gr.spinellis.ckjm.ant.PrintXmlResults
 
handleClass(String, ClassMetrics) - Method in interface gr.spinellis.ckjm.CkjmOutputHandler
Method called when metrics are generated
handleClass(String, ClassMetrics) - Method in class gr.spinellis.ckjm.PrintPlainResults
 

I

includeAll() - Static method in class gr.spinellis.ckjm.MetricsFilter
Return true if the measurements should include all classes
incNoc() - Method in class gr.spinellis.ckjm.ClassMetrics
Increment the number of children
incNpm() - Method in class gr.spinellis.ckjm.ClassMetrics
Increment the number of public methods count
incWmc() - Method in class gr.spinellis.ckjm.ClassMetrics
Increment the weighted methods count
isJdkClass(String) - Static method in class gr.spinellis.ckjm.ClassMetrics
Return true if the class name is part of the Java SDK
isJdkIncluded() - Static method in class gr.spinellis.ckjm.MetricsFilter
Return true if the measurements should include calls to the Java JDK into account
isPublic() - Method in class gr.spinellis.ckjm.ClassMetrics
Return true if the class is public
isVisited() - Method in class gr.spinellis.ckjm.ClassMetrics
Return true if the class has been visited by the metrics analyzer.

M

main(String[]) - Static method in class gr.spinellis.ckjm.MetricsFilter
The filter's main body.
MethodVisitor - Class in gr.spinellis.ckjm
Visit a method calculating the class's Chidamber-Kemerer metrics.
MethodVisitor(MethodGen, ClassVisitor) - Constructor for class gr.spinellis.ckjm.MethodVisitor
Constructor.
MetricsFilter - Class in gr.spinellis.ckjm
Convert a list of classes into their metrics.
MetricsFilter() - Constructor for class gr.spinellis.ckjm.MetricsFilter
 
mi - Variable in class gr.spinellis.ckjm.ClassVisitor
Use of fields in methods.

P

printFooter() - Method in class gr.spinellis.ckjm.ant.PrintXmlResults
 
printHeader() - Method in class gr.spinellis.ckjm.ant.PrintXmlResults
 
printMetrics(CkjmOutputHandler) - Method in class gr.spinellis.ckjm.ClassMetricsContainer
Print the metrics of all the visited classes.
PrintPlainResults - Class in gr.spinellis.ckjm
Simple plain text output formatter
PrintPlainResults(PrintStream) - Constructor for class gr.spinellis.ckjm.PrintPlainResults
 
PrintXmlResults - Class in gr.spinellis.ckjm.ant
XML output formatter
PrintXmlResults(PrintStream) - Constructor for class gr.spinellis.ckjm.ant.PrintXmlResults
 
processClass(ClassMetricsContainer, String) - Static method in class gr.spinellis.ckjm.MetricsFilter
Load and parse the specified class.

R

registerCoupling(String) - Method in class gr.spinellis.ckjm.ClassVisitor
Add a given class to the classes we are coupled to
registerCoupling(Type) - Method in class gr.spinellis.ckjm.ClassVisitor
 
registerFieldAccess(String, String) - Method in class gr.spinellis.ckjm.ClassVisitor
 
registerMethodInvocation(String, String, Type[]) - Method in class gr.spinellis.ckjm.ClassVisitor
 
runMetrics(String[], CkjmOutputHandler) - Static method in class gr.spinellis.ckjm.MetricsFilter
The interface for other Java based applications.

S

setCbo(int) - Method in class gr.spinellis.ckjm.ClassMetrics
Set the coupling between object classes metric
setClassdir(File) - Method in class gr.spinellis.ckjm.ant.CkjmTask
Sets the dir which contains the class files that will be analyzed
setDit(int) - Method in class gr.spinellis.ckjm.ClassMetrics
Set the depth of inheritence tree metric
setExtdirs(Path) - Method in class gr.spinellis.ckjm.ant.CkjmTask
Sets the extension directories that will be used by ckjm.
setFormat(String) - Method in class gr.spinellis.ckjm.ant.CkjmTask
Sets the format of the output file.
setLcom(int) - Method in class gr.spinellis.ckjm.ClassMetrics
Set the class's lack of cohesion in methods metric
setOutputfile(File) - Method in class gr.spinellis.ckjm.ant.CkjmTask
Sets the outputfile
setPublic() - Method in class gr.spinellis.ckjm.ClassMetrics
Call to set the class as public
setRfc(int) - Method in class gr.spinellis.ckjm.ClassMetrics
Increment the Response for a Class
setVisited() - Method in class gr.spinellis.ckjm.ClassMetrics
Mark the instance as visited by the metrics analyzer
start() - Method in class gr.spinellis.ckjm.ClassVisitor
 
start() - Method in class gr.spinellis.ckjm.MethodVisitor
Start the method's visit.

T

toString() - Method in class gr.spinellis.ckjm.ClassMetrics
Return the 6 CK metrics plus Ce as a space-separated string

V

visitArrayInstruction(ArrayInstruction) - Method in class gr.spinellis.ckjm.MethodVisitor
Array use.
visitCHECKCAST(CHECKCAST) - Method in class gr.spinellis.ckjm.MethodVisitor
Visit checklast instruction.
visitField(Field) - Method in class gr.spinellis.ckjm.ClassVisitor
Called when a field access is encountered.
visitFieldInstruction(FieldInstruction) - Method in class gr.spinellis.ckjm.MethodVisitor
Field access.
visitINSTANCEOF(INSTANCEOF) - Method in class gr.spinellis.ckjm.MethodVisitor
Visit an instanceof instruction.
visitInvokeInstruction(InvokeInstruction) - Method in class gr.spinellis.ckjm.MethodVisitor
Method invocation.
visitJavaClass(JavaClass) - Method in class gr.spinellis.ckjm.ClassVisitor
Calculate the class's metrics based on its elements.
visitLocalVariableInstruction(LocalVariableInstruction) - Method in class gr.spinellis.ckjm.MethodVisitor
Local variable use.
visitMethod(Method) - Method in class gr.spinellis.ckjm.ClassVisitor
Called when a method invocation is encountered.
visitReturnInstruction(ReturnInstruction) - Method in class gr.spinellis.ckjm.MethodVisitor
Visit return instruction.

A C E G H I M P R S T V