This document provides size and complexity metrics.
Summary Statistics | |
Statistic | Value |
---|---|
Number of Packages | 11 |
Number of Classes | 86 |
Number of Methods | 433 |
Number of JVM Instructions | 10103 |
Average Class Complexity (Avg WMC) | 10.55814 |
Number of Classes with WMC>50 | 3 |
Cumulative Complexity (Total WMC) | 939 |
Percentage of Classes with WMC>50 | 3.4883723% |
Average McCabe Complexity (method level) | 2.1685913 |
Minimum method McCabe Complexity | 1 |
Maximum method McCabe Complexity | 30 |
Number of Methods with Complexity>10 | 10 |
Percentage of Methods with Complexity>10 | 2.3094687% |
Average Nbr of Instructions per Method | 23.332563 |
Minimum Nbr of Instructions per Method | 0 |
Maximum Nbr of Instructions per Method | 464 |
Definitions for these statistics are here.
Most Complex Methods | ||||
Class | Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|---|
org.jxref.inspector.MethodIdentifier | getArgumentText | () | 30 | 306 |
org.jxref.search.ModifierFilterClause | meetsClauseCriteria | (int) | 25 | 124 |
org.jxref.search.MethodFilter | append | (org.jxref.report.ant.ClassAttributeFilter) | 14 | 124 |
org.jxref.search.ModifierFilterClause | <init> | (java.lang.String, boolean) | 13 | 173 |
org.jxref.report.ComplexityReport | execute | () | 12 | 464 |
org.jxref.inspector.MethodDefinition | compareTo | (java.lang.Object) | 11 | 65 |
org.jxref.search.StringMask$Mask | doesApply | (java.lang.String) | 11 | 57 |
org.jxref.inspector.MethodIdentifier | equals | (java.lang.Object) | 11 | 61 |
org.jxref.inspector.MethodInspector | computeMcCabeComplexity | (org.jxref.inspector.MethodDefinition) | 10 | 68 |
org.jxref.inspector.MethodDefinition | getAbstractReferences | () | 10 | 93 |
org.jxref.report.UnusedMethodReport | execute | () | 9 | 241 |
org.jxref.inspector.MethodDefinition | getInterfaceReferences | () | 9 | 88 |
org.jxref.search.MethodFilter | apply | (java.util.Collection) | 8 | 68 |
org.jxref.reference.ClassStatisticsAggregator | parse | () | 8 | 181 |
org.jxref.search.MethodFilter | apply | (org.jxref.inspector.MethodDescriptor[]) | 7 | 57 |
org.jxref.report.ComplexityReport$PackageStatistic | computeStatistics | () | 7 | 98 |
org.jxref.inspector.MethodInspector | findCalledMethods | (org.jxref.inspector.MethodDescriptor) | 7 | 74 |
org.jxref.inspector.ClassDefinition | findMethodDefinition | (org.jxref.inspector.MethodDescriptor) | 7 | 48 |
org.jxref.inspector.ClassDefinition | getInterfaces | () | 7 | 86 |
org.jxref.search.StringMask | includeValue | (java.lang.String) | 7 | 58 |
Package Summary | |||||||
Package | Nbr Classes | Avg Complexity / Class (Avg WMC) | Max Complexity / Class (Max WMC) | Cumulative Complexity (Cum WMC) | Avg Nbr JVM Instructions / Class | Max Nbr JVM Instructions / Class | Cumulative Nbr JVM Instructions |
---|---|---|---|---|---|---|---|
org.jxref.inspector | 13 | 22.0 | 63 | 286 | 198.76923 | 560 | 2584 |
org.jxref.search | 9 | 19.777779 | 75 | 178 | 158.55556 | 540 | 1427 |
org.jxref.report | 18 | 7.2222223 | 18 | 130 | 120.611115 | 526 | 2171 |
org.jxref.report.ant | 11 | 7.181818 | 19 | 79 | 89.27273 | 276 | 982 |
org.jxref.report.vo | 12 | 6.3333335 | 13 | 76 | 81.0 | 231 | 972 |
org.jxref.iterator | 6 | 8.5 | 14 | 51 | 79.333336 | 134 | 476 |
org.jxref.reference | 2 | 21.5 | 41 | 43 | 254.5 | 501 | 509 |
org.jxref.util | 4 | 6.5 | 8 | 26 | 51.75 | 77 | 207 |
org.jxref.sequence | 2 | 10.0 | 15 | 20 | 173.5 | 235 | 347 |
testclasses | 8 | 1.625 | 3 | 13 | 8.125 | 20 | 65 |
org.jxref.report.pkg | 1 | 6.0 | 6 | 6 | 106.0 | 106 | 106 |
Class Summary by Package |
org.jxref.inspector | |||||||
Class | Nbr Methods | Avg Complexity / Method | Max Complexity / Method | Cumulative Complexity (WMC) | Avg Nbr JVM Instructions / Method | Max Nbr JVM Instructions / Method | Cumulative Nbr JVM Instructions |
---|---|---|---|---|---|---|---|
org.jxref.inspector.MethodDefinition | 19 | 3.3157895 | 11 | 63 | 28.263159 | 93 | 537 |
org.jxref.inspector.MethodIdentifier | 12 | 5.25 | 30 | 63 | 46.666668 | 306 | 560 |
org.jxref.inspector.ClassDefinition | 11 | 3.1818182 | 7 | 35 | 26.90909 | 86 | 296 |
org.jxref.inspector.ClassUtility | 9 | 2.6666667 | 4 | 24 | 26.777779 | 45 | 241 |
org.jxref.inspector.MethodReferenceListing | 10 | 2.4 | 6 | 24 | 23.4 | 91 | 234 |
org.jxref.inspector.MethodInspector | 5 | 4.4 | 10 | 22 | 34.6 | 74 | 173 |
org.jxref.inspector.ClassInspector | 6 | 3.3333333 | 6 | 20 | 35.0 | 63 | 210 |
org.jxref.inspector.TestMethodInspector | 5 | 1.8 | 3 | 9 | 27.0 | 44 | 135 |
org.jxref.inspector.TestClassInspector | 5 | 1.6 | 2 | 8 | 13.4 | 23 | 67 |
org.jxref.inspector.TestClassDefinition | 3 | 2.3333333 | 5 | 7 | 19.333334 | 31 | 58 |
org.jxref.inspector.TestBcelUtility | 3 | 1.6666666 | 3 | 5 | 15.666667 | 25 | 47 |
org.jxref.inspector.MethodDescriptor | 4 | 1.0 | 1 | 4 | 0.0 | 0 | 0 |
org.jxref.inspector.TestMethodIdentifier | 2 | 1.0 | 1 | 2 | 13.0 | 23 | 26 |
org.jxref.iterator | |||||||
Class | Nbr Methods | Avg Complexity / Method | Max Complexity / Method | Cumulative Complexity (WMC) | Avg Nbr JVM Instructions / Method | Max Nbr JVM Instructions / Method | Cumulative Nbr JVM Instructions |
---|---|---|---|---|---|---|---|
org.jxref.iterator.ZipFileClassNameIterator | 7 | 2.0 | 5 | 14 | 16.428572 | 37 | 115 |
org.jxref.iterator.DirectoryClassNameIterator | 6 | 2.1666667 | 5 | 13 | 22.333334 | 55 | 134 |
org.jxref.iterator.ClassLoadReference | 4 | 2.0 | 5 | 8 | 24.25 | 85 | 97 |
org.jxref.iterator.IteratorFactory | 2 | 3.0 | 5 | 6 | 23.5 | 44 | 47 |
org.jxref.iterator.TestZipFileClassNameIterator | 4 | 1.5 | 3 | 6 | 13.75 | 30 | 55 |
org.jxref.iterator.TestDirectoryClassNameIterator | 3 | 1.3333334 | 2 | 4 | 9.333333 | 14 | 28 |
org.jxref.report.ant | |||||||
Class | Nbr Methods | Avg Complexity / Method | Max Complexity / Method | Cumulative Complexity (WMC) | Avg Nbr JVM Instructions / Method | Max Nbr JVM Instructions / Method | Cumulative Nbr JVM Instructions |
---|---|---|---|---|---|---|---|
org.jxref.report.ant.CommonReportTask | 11 | 1.7272727 | 4 | 19 | 25.09091 | 91 | 276 |
org.jxref.report.ant.JxRefTask | 9 | 1.5555556 | 6 | 14 | 26.0 | 180 | 234 |
org.jxref.report.ant.BaseReportTask | 9 | 1.4444444 | 5 | 13 | 13.111111 | 49 | 118 |
org.jxref.report.ant.ClassAttributeFilter | 7 | 1.0 | 1 | 7 | 4.714286 | 12 | 33 |
org.jxref.report.ant.MethodXref | 2 | 3.5 | 6 | 7 | 41.0 | 77 | 82 |
org.jxref.report.ant.SequenceFlow | 3 | 2.0 | 3 | 6 | 22.333334 | 42 | 67 |
org.jxref.report.ant.Complexity | 3 | 1.6666666 | 3 | 5 | 18.0 | 42 | 54 |
org.jxref.report.ant.TestJxRefTask | 3 | 1.0 | 1 | 3 | 24.0 | 34 | 72 |
org.jxref.report.ant.UnusedMethod | 2 | 1.5 | 2 | 3 | 20.0 | 35 | 40 |
org.jxref.report.ant.Exclude | 1 | 1.0 | 1 | 1 | 3.0 | 3 | 3 |
org.jxref.report.ant.Include | 1 | 1.0 | 1 | 1 | 3.0 | 3 | 3 |
org.jxref.report.vo | |||||||
Class | Nbr Methods | Avg Complexity / Method | Max Complexity / Method | Cumulative Complexity (WMC) | Avg Nbr JVM Instructions / Method | Max Nbr JVM Instructions / Method | Cumulative Nbr JVM Instructions |
---|---|---|---|---|---|---|---|
org.jxref.report.vo.AnalysisReport | 8 | 1.625 | 3 | 13 | 28.875 | 106 | 231 |
org.jxref.report.vo.XmlTagUtility | 5 | 2.4 | 6 | 12 | 31.0 | 90 | 155 |
org.jxref.report.vo.Statistic | 7 | 1.4285715 | 3 | 10 | 14.142858 | 31 | 99 |
org.jxref.report.vo.ErrorDescription | 5 | 1.8 | 4 | 9 | 37.0 | 118 | 185 |
org.jxref.report.vo.TestErrorDescription | 2 | 4.0 | 7 | 8 | 43.0 | 83 | 86 |
org.jxref.report.vo.Inspectable | 5 | 1.0 | 1 | 5 | 0.0 | 0 | 0 |
org.jxref.report.vo.ReportSection | 4 | 1.25 | 2 | 5 | 11.75 | 25 | 47 |
org.jxref.report.vo.TestStatistic | 2 | 2.5 | 4 | 5 | 24.0 | 45 | 48 |
org.jxref.report.vo.LabeledItem | 3 | 1.0 | 1 | 3 | 4.3333335 | 6 | 13 |
org.jxref.report.vo.TestAnalysisReport | 3 | 1.0 | 1 | 3 | 24.333334 | 56 | 73 |
org.jxref.report.vo.ValueDescription | 2 | 1.0 | 1 | 2 | 17.5 | 25 | 35 |
org.jxref.report.vo.XmlTagEmitable | 1 | 1.0 | 1 | 1 | 0.0 | 0 | 0 |
org.jxref.search | |||||||
Class | Nbr Methods | Avg Complexity / Method | Max Complexity / Method | Cumulative Complexity (WMC) | Avg Nbr JVM Instructions / Method | Max Nbr JVM Instructions / Method | Cumulative Nbr JVM Instructions |
---|---|---|---|---|---|---|---|
org.jxref.search.ModifierFilterClause | 39 | 1.9230769 | 25 | 75 | 13.846154 | 173 | 540 |
org.jxref.search.MethodFilter | 13 | 3.6153846 | 14 | 47 | 28.615385 | 124 | 372 |
org.jxref.search.StringMask$Mask | 2 | 8.0 | 11 | 16 | 56.5 | 57 | 113 |
org.jxref.search.ModifierFilter | 4 | 3.25 | 7 | 13 | 27.5 | 57 | 110 |
org.jxref.search.TestModifierSearchCriteria | 5 | 2.2 | 3 | 11 | 27.0 | 46 | 135 |
org.jxref.search.StringMask | 4 | 2.5 | 7 | 10 | 22.25 | 58 | 89 |
org.jxref.search.ModifierFilter$AndClause | 2 | 1.0 | 1 | 2 | 4.5 | 6 | 9 |
org.jxref.search.ModifierFilter$OrClause | 2 | 1.0 | 1 | 2 | 4.5 | 6 | 9 |
org.jxref.search.TestStringSearchCriteria | 2 | 1.0 | 1 | 2 | 25.0 | 47 | 50 |
org.jxref.sequence | |||||||
Class | Nbr Methods | Avg Complexity / Method | Max Complexity / Method | Cumulative Complexity (WMC) | Avg Nbr JVM Instructions / Method | Max Nbr JVM Instructions / Method | Cumulative Nbr JVM Instructions |
---|---|---|---|---|---|---|---|
org.jxref.sequence.CalledMethod | 7 | 2.142857 | 5 | 15 | 33.57143 | 81 | 235 |
org.jxref.sequence.MethodSequenceFlow | 3 | 1.6666666 | 2 | 5 | 37.333332 | 77 | 112 |
org.jxref.util | |||||||
Class | Nbr Methods | Avg Complexity / Method | Max Complexity / Method | Cumulative Complexity (WMC) | Avg Nbr JVM Instructions / Method | Max Nbr JVM Instructions / Method | Cumulative Nbr JVM Instructions |
---|---|---|---|---|---|---|---|
org.jxref.util.Logger | 8 | 1.0 | 1 | 8 | 6.375 | 13 | 51 |
org.jxref.util.TestCollectionUtility | 2 | 3.5 | 6 | 7 | 38.5 | 74 | 77 |
org.jxref.util.CollectionUtility | 2 | 3.0 | 5 | 6 | 19.0 | 35 | 38 |
org.jxref.util.Validator | 3 | 1.6666666 | 2 | 5 | 13.666667 | 22 | 41 |
testclasses | |||||||
Class | Nbr Methods | Avg Complexity / Method | Max Complexity / Method | Cumulative Complexity (WMC) | Avg Nbr JVM Instructions / Method | Max Nbr JVM Instructions / Method | Cumulative Nbr JVM Instructions |
---|---|---|---|---|---|---|---|
testclasses.MyCalledClass | 2 | 1.5 | 2 | 3 | 10.0 | 17 | 20 |
testclasses.MyCallingClass | 2 | 1.0 | 1 | 2 | 4.0 | 5 | 8 |
testclasses.MyFactory | 2 | 1.0 | 1 | 2 | 3.5 | 4 | 7 |
testclasses.MyNastyClass$Inner1 | 2 | 1.0 | 1 | 2 | 7.5 | 9 | 15 |
testclasses.MyInterface | 1 | 1.0 | 1 | 1 | 0.0 | 0 | 0 |
testclasses.MyNastyClass | 1 | 1.0 | 1 | 1 | 3.0 | 3 | 3 |
testclasses.MyNastyClass$Inner2 | 1 | 1.0 | 1 | 1 | 6.0 | 6 | 6 |
testclasses.MyNastyClass$Inner2$Inner3 | 1 | 1.0 | 1 | 1 | 6.0 | 6 | 6 |
Details by Package/Class/Method |
org.jxref.inspector.ClassDefinition | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
findMethodDefinition | (org.jxref.inspector.MethodDescriptor) | 7 | 48 |
getInterfaces | () | 7 | 86 |
getClassAncestors | () | 5 | 42 |
getInterfaceAncestors | () | 5 | 44 |
<init> | (java.lang.String, org.apache.bcel.classfile.JavaClass) | 2 | 16 |
checkDefinitionStatus | () | 2 | 16 |
getAncestors | () | 2 | 18 |
isDefinitionKnown | () | 2 | 7 |
<init> | (java.lang.String) | 1 | 5 |
getMethodDefinitions | () | 1 | 8 |
getSuperClassName | () | 1 | 6 |
org.jxref.inspector.ClassInspector | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
findMethodDefinitions | (org.jxref.iterator.ClassLoadReference, org.jxref.search.ModifierFilter) | 6 | 52 |
findMethodReferenceSingleClass | (org.jxref.iterator.ClassLoadReference) | 5 | 63 |
findClassDependencies | (org.jxref.iterator.ClassLoadReference) | 4 | 50 |
getMethodNames | (org.jxref.iterator.ClassLoadReference) | 3 | 35 |
<init> | () | 1 | 3 |
findMethodReferences | (org.jxref.iterator.ClassLoadReference) | 1 | 7 |
org.jxref.inspector.ClassUtility | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
getClassMethods | (java.lang.String, org.apache.bcel.classfile.JavaClass) | 4 | 41 |
createMethodReference | (org.apache.bcel.classfile.ConstantPool, org.apache.bcel.classfile.ConstantMethodref) | 3 | 45 |
getClassName | (org.apache.bcel.classfile.ConstantPool, org.apache.bcel.classfile.ConstantClass) | 3 | 31 |
getLoadedClass | (java.lang.String) | 3 | 22 |
getMethodName | (org.apache.bcel.classfile.ConstantPool, org.apache.bcel.classfile.ConstantNameAndType) | 3 | 28 |
getMethodSignature | (org.apache.bcel.classfile.ConstantPool, org.apache.bcel.classfile.ConstantNameAndType) | 3 | 26 |
addClass | (org.jxref.iterator.ClassLoadReference) | 2 | 22 |
getClassMethods | (org.jxref.iterator.ClassLoadReference) | 2 | 23 |
<init> | () | 1 | 3 |
org.jxref.inspector.MethodDefinition | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
compareTo | (java.lang.Object) | 11 | 65 |
equals | (java.lang.Object) | 11 | 65 |
getAbstractReferences | () | 10 | 93 |
getInterfaceReferences | () | 9 | 88 |
<init> | (java.lang.String, org.apache.bcel.classfile.Method) | 4 | 41 |
findInvokedMethod | (org.apache.bcel.generic.InvokeInstruction) | 3 | 49 |
<clinit> | () | 2 | 20 |
getInstructionList | () | 2 | 16 |
emitXmlTag | (int) | 1 | 33 |
getArgumentText | () | 1 | 4 |
getClassName | () | 1 | 4 |
getMethodId | () | 1 | 3 |
getModifiers | () | 1 | 4 |
getName | () | 1 | 4 |
getPackageName | () | 1 | 4 |
getSignatureText | () | 1 | 4 |
hashCode | () | 1 | 15 |
isAbstract | () | 1 | 4 |
toString | () | 1 | 21 |
org.jxref.inspector.MethodDescriptor | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
getArgumentText | () | 1 | 0 |
getClassName | () | 1 | 0 |
getName | () | 1 | 0 |
getSignatureText | () | 1 | 0 |
org.jxref.inspector.MethodIdentifier | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
getArgumentText | () | 30 | 306 |
compareTo | (java.lang.Object) | 11 | 65 |
equals | (java.lang.Object) | 11 | 61 |
determineArrayNotation | (int) | 2 | 18 |
getPackageName | () | 2 | 18 |
<init> | (java.lang.String, java.lang.String) | 1 | 18 |
emitXmlTag | (int) | 1 | 32 |
getClassName | () | 1 | 3 |
getName | () | 1 | 3 |
getSignatureText | () | 1 | 3 |
hashCode | () | 1 | 15 |
toString | () | 1 | 18 |
org.jxref.inspector.MethodInspector | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
computeMcCabeComplexity | (org.jxref.inspector.MethodDefinition) | 10 | 68 |
findCalledMethods | (org.jxref.inspector.MethodDescriptor) | 7 | 74 |
computeNbrInstructions | (org.jxref.inspector.MethodDefinition) | 2 | 15 |
getInstructions | (org.jxref.inspector.MethodDefinition) | 2 | 13 |
<init> | () | 1 | 3 |
org.jxref.inspector.MethodReferenceListing | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
equals | (java.lang.Object) | 6 | 30 |
compareTo | (java.lang.Object) | 3 | 35 |
emitXmlTag | (int) | 3 | 91 |
isInternalReferenceOnly | () | 3 | 19 |
<init> | (org.jxref.inspector.MethodIdentifier) | 2 | 18 |
addClassReference | (java.lang.String) | 2 | 13 |
hasInternalReference | () | 2 | 14 |
getMethodIdentifier | () | 1 | 3 |
getReferencedClasses | () | 1 | 7 |
hashCode | () | 1 | 4 |
org.jxref.inspector.TestBcelUtility | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
printArray | (java.lang.Object[]) | 3 | 19 |
<init> | () | 1 | 3 |
testGetClassMethods | () | 1 | 25 |
org.jxref.inspector.TestClassDefinition | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
testGetInterfaces | () | 5 | 31 |
<init> | () | 1 | 11 |
setUp | () | 1 | 16 |
org.jxref.inspector.TestClassInspector | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
printArray | (java.lang.Object[]) | 2 | 17 |
testFindClassDependencies | () | 2 | 23 |
testFindMethodReferences | () | 2 | 23 |
<init> | () | 1 | 3 |
ignoreFindAllInnerClasses | () | 1 | 1 |
org.jxref.inspector.TestMethodIdentifier | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 3 |
testGetArgumentText | () | 1 | 23 |
org.jxref.inspector.TestMethodInspector | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
printArray | (java.lang.Object[]) | 3 | 44 |
testComputeMcCabeComplexity | () | 2 | 25 |
testFindCalledMethods | () | 2 | 35 |
<init> | () | 1 | 11 |
setUp | () | 1 | 20 |
org.jxref.iterator.ClassLoadReference | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (java.lang.String, java.io.InputStream) | 5 | 85 |
getClassFileInputStream | () | 1 | 6 |
getClassName | () | 1 | 3 |
toString | () | 1 | 3 |
org.jxref.iterator.DirectoryClassNameIterator | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
stackTheClassLoadReferences | (java.io.File) | 5 | 55 |
<init> | (java.io.File) | 3 | 36 |
hasNext | () | 2 | 8 |
extractClassNameFromFile | (java.io.File) | 1 | 25 |
next | () | 1 | 5 |
remove | () | 1 | 5 |
org.jxref.iterator.IteratorFactory | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
createClassNameIterator | (java.lang.String) | 5 | 44 |
<init> | () | 1 | 3 |
org.jxref.iterator.TestDirectoryClassNameIterator | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
testBasic | () | 2 | 11 |
<init> | () | 1 | 3 |
setUp | () | 1 | 14 |
org.jxref.iterator.TestZipFileClassNameIterator | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
testBasic | () | 3 | 30 |
<init> | () | 1 | 3 |
setUp | () | 1 | 14 |
testZipFileClassNameIterator | () | 1 | 8 |
org.jxref.iterator.ZipFileClassNameIterator | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
findNextClassNameEntry | () | 5 | 37 |
<init> | (java.io.File) | 2 | 26 |
finalize | () | 2 | 7 |
hasNext | () | 2 | 7 |
extractClassNameFromEntry | (java.util.zip.ZipEntry) | 1 | 16 |
next | () | 1 | 17 |
remove | () | 1 | 5 |
org.jxref.reference.ClassStatisticsAggregator | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
parse | () | 8 | 181 |
checkClassPathEntry | (java.lang.String) | 5 | 28 |
<init> | (java.lang.String[]) | 4 | 67 |
findMethodDefinitions | (org.jxref.search.ModifierFilter) | 4 | 41 |
getMethodsReferencedExternallyOnly | () | 4 | 35 |
getMethodsReferencedInternallyOnly | () | 4 | 35 |
addClassPathEntry | (java.lang.String) | 3 | 26 |
<clinit> | () | 2 | 20 |
findMethodDefinitions | (org.jxref.search.MethodFilter) | 2 | 12 |
<init> | () | 1 | 26 |
findAllMethodDefinitions | () | 1 | 7 |
getAllMethodReferenceListings | () | 1 | 8 |
getAllMethodReferences | () | 1 | 8 |
getErrorReports | () | 1 | 7 |
org.jxref.reference.ClassStatisticsAggregator$GlobalSearch | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 6 |
meetsCriteria | (int) | 1 | 2 |
org.jxref.report.AbstractReportExecutor | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (org.jxref.reference.ClassStatisticsAggregator) | 2 | 16 |
<clinit> | () | 1 | 4 |
execute | () | 1 | 0 |
org.jxref.report.ant.BaseReportTask | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<clinit> | () | 5 | 49 |
<init> | () | 1 | 19 |
addConfiguredExclude | (org.jxref.report.ant.Exclude) | 1 | 6 |
addConfiguredInclude | (org.jxref.report.ant.Include) | 1 | 6 |
append | (org.jxref.report.ant.BaseReportTask) | 1 | 16 |
getExcludes | () | 1 | 7 |
getIncludes | () | 1 | 7 |
setFormat | (java.lang.String) | 1 | 4 |
setLabel | (java.lang.String) | 1 | 4 |
org.jxref.report.ant.ClassAttributeFilter | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 12 |
getClassName | () | 1 | 3 |
getMethodModifier | () | 1 | 3 |
getMethodName | () | 1 | 3 |
setClassName | (java.lang.String) | 1 | 4 |
setMethodModifier | (java.lang.String) | 1 | 4 |
setMethodName | (java.lang.String) | 1 | 4 |
org.jxref.report.ant.CommonReportTask | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
write | (java.lang.String) | 4 | 50 |
writeHTML | (java.lang.String) | 4 | 83 |
writeFile | (java.lang.String, java.lang.String) | 3 | 91 |
<init> | (java.lang.String, java.lang.String) | 1 | 21 |
getClassStatisticsAggregator | () | 1 | 3 |
isXmlOutputSpecified | () | 1 | 4 |
setClassStatisticsAggregator | (org.jxref.reference.ClassStatisticsAggregator) | 1 | 7 |
setOutDir | (java.lang.String) | 1 | 4 |
setOutFileName | (java.lang.String) | 1 | 4 |
write | (org.jxref.report.vo.AnalysisReport) | 1 | 4 |
writeXML | (java.lang.String) | 1 | 5 |
org.jxref.report.ant.Complexity | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
execute | () | 3 | 42 |
<init> | () | 1 | 8 |
setTop | (int) | 1 | 4 |
org.jxref.report.ant.Exclude | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 3 |
org.jxref.report.ant.Include | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 3 |
org.jxref.report.ant.JxRefTask | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
execute | () | 6 | 180 |
<clinit> | () | 1 | 4 |
<init> | () | 1 | 16 |
addConfiguredComplexity | (org.jxref.report.ant.Complexity) | 1 | 6 |
addConfiguredFileSet | (org.apache.tools.ant.types.FileSet) | 1 | 6 |
addConfiguredMethodXref | (org.jxref.report.ant.MethodXref) | 1 | 6 |
addConfiguredSequenceFlow | (org.jxref.report.ant.SequenceFlow) | 1 | 6 |
addConfiguredUnusedMethod | (org.jxref.report.ant.UnusedMethod) | 1 | 6 |
setOutDir | (java.lang.String) | 1 | 4 |
org.jxref.report.ant.MethodXref | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
execute | () | 6 | 77 |
<init> | () | 1 | 5 |
org.jxref.report.ant.SequenceFlow | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
execute | () | 3 | 42 |
setMaxCallDepth | (int) | 2 | 17 |
<init> | () | 1 | 8 |
org.jxref.report.ant.TestJxRefTask | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 11 |
setUp | () | 1 | 34 |
testExecute | () | 1 | 27 |
org.jxref.report.ant.UnusedMethod | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
execute | () | 2 | 35 |
<init> | () | 1 | 5 |
org.jxref.report.ComplexityReport | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
execute | () | 12 | 464 |
<init> | (org.jxref.reference.ClassStatisticsAggregator) | 1 | 7 |
access$200 | (org.jxref.inspector.MethodDefinition, int) | 1 | 4 |
getNbrComplexMethods | () | 1 | 3 |
methodFormatter | (org.jxref.inspector.MethodDefinition, int) | 1 | 44 |
setNbrComplexMethods | (int) | 1 | 4 |
org.jxref.report.ComplexityReport$ClassStatistic | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
computeStatistics | () | 6 | 85 |
emitXmlTag | (int) | 2 | 109 |
<init> | (java.lang.String) | 1 | 13 |
addMethodDefinition | (org.jxref.inspector.MethodDefinition) | 1 | 6 |
org.jxref.report.ComplexityReport$ClassStatisticComparator | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
compare | (java.lang.Object, java.lang.Object) | 3 | 36 |
<init> | (org.jxref.report.ComplexityReport$1) | 1 | 3 |
org.jxref.report.ComplexityReport$CumulativeStatistic | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
checkStatistics | () | 2 | 6 |
<init> | (java.lang.String) | 1 | 30 |
computeStatistics | () | 1 | 0 |
getAverageMcCabeComplexity | () | 1 | 5 |
getAverageNbrInstructions | () | 1 | 5 |
getCumulativeMcCabeComplexity | () | 1 | 5 |
getCumulativeNbrInstructions | () | 1 | 5 |
getMaximumMcCabeComplexity | () | 1 | 5 |
getMaximumNbrInstructions | () | 1 | 5 |
getMinimumMcCabeComplexity | () | 1 | 5 |
getMinimumNbrInstructions | () | 1 | 5 |
org.jxref.report.ComplexityReport$MethodDefinitionComparator | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
compare | (java.lang.Object, java.lang.Object) | 3 | 38 |
<init> | (org.jxref.report.ComplexityReport$1) | 1 | 3 |
org.jxref.report.ComplexityReport$MethodStatistic | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (org.jxref.inspector.MethodDefinition) | 1 | 6 |
emitXmlTag | (int) | 1 | 5 |
org.jxref.report.ComplexityReport$PackageStatistic | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
computeStatistics | () | 7 | 98 |
addMethodDefinition | (org.jxref.inspector.MethodDefinition) | 2 | 26 |
computeCumulativeMcCabeComplexity | () | 2 | 22 |
computeCumulativeNbrInstructions | () | 2 | 22 |
emitXmlTag | (int) | 2 | 126 |
<init> | (java.lang.String) | 1 | 12 |
getNbrClasses | () | 1 | 4 |
getNbrWithComplexityOverFifty | () | 1 | 5 |
org.jxref.report.MethodCrossReferenceReport | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
execute | () | 5 | 126 |
<clinit> | () | 2 | 20 |
<init> | (org.jxref.reference.ClassStatisticsAggregator) | 1 | 4 |
org.jxref.report.MethodLevelReport | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
excludeStandardMethods | () | 5 | 72 |
excludedMethodName | (java.lang.String) | 3 | 29 |
addSpecification | (org.jxref.report.ant.ClassAttributeFilter) | 2 | 16 |
excludeMethodsInClass | (java.lang.Class) | 2 | 17 |
<init> | (org.jxref.reference.ClassStatisticsAggregator) | 1 | 7 |
org.jxref.report.PackageReferenceReport | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
execute | () | 3 | 48 |
<init> | (org.jxref.reference.ClassStatisticsAggregator) | 1 | 4 |
org.jxref.report.pkg.LabeledTag | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (java.lang.String, java.lang.String) | 2 | 23 |
emitXmlTag | (int) | 2 | 71 |
addMember | (org.jxref.report.vo.XmlTagEmitable) | 1 | 9 |
getName | () | 1 | 3 |
org.jxref.report.ReportTestCase | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 11 |
setUp | () | 1 | 8 |
org.jxref.report.SequenceFlowReport | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
execute | () | 6 | 136 |
<init> | (org.jxref.reference.ClassStatisticsAggregator) | 1 | 29 |
setMaxCallDepth | (int) | 1 | 4 |
org.jxref.report.TestComplexityReport | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 3 |
testExecute | () | 1 | 14 |
org.jxref.report.TestMethodCrossReference | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
testExecute | () | 3 | 48 |
<init> | () | 1 | 3 |
org.jxref.report.TestSequenceFlowReport | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 3 |
testExecute | () | 1 | 34 |
org.jxref.report.TestUnusedMethods | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
testFindUnnecessarilyVisibleMethods | () | 5 | 46 |
<init> | () | 1 | 3 |
org.jxref.report.UnusedMethodReport | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
execute | () | 9 | 241 |
<init> | (org.jxref.reference.ClassStatisticsAggregator) | 1 | 4 |
org.jxref.report.vo.AnalysisReport | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
emitXmlTag | (int) | 3 | 106 |
addReportSectionData | (java.lang.String, org.jxref.report.vo.XmlTagEmitable) | 2 | 34 |
getReportSection | () | 2 | 32 |
getReportSectionData | (java.lang.String) | 2 | 18 |
<init> | (java.lang.String) | 1 | 23 |
emitXmlDocument | () | 1 | 11 |
getDescription | () | 1 | 3 |
setDescription | (java.lang.String) | 1 | 4 |
org.jxref.report.vo.ErrorDescription | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
emitXmlTag | (int) | 4 | 118 |
getFormattedException | () | 2 | 19 |
<init> | (java.lang.String, java.lang.Throwable) | 1 | 20 |
addPossibleCause | (java.lang.String) | 1 | 14 |
addSuggestion | (java.lang.String) | 1 | 14 |
org.jxref.report.vo.Inspectable | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
getField | (java.lang.String) | 1 | 0 |
getFieldName | () | 1 | 0 |
getInspectableField | (int) | 1 | 0 |
getInspectableFieldName | () | 1 | 0 |
getLabel | () | 1 | 0 |
org.jxref.report.vo.LabeledItem | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 6 |
getLabel | () | 1 | 3 |
setLabel | (java.lang.String) | 1 | 4 |
org.jxref.report.vo.ReportSection | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
emitXmlTag | (int) | 2 | 25 |
<init> | (java.lang.String) | 1 | 9 |
addSectionDetail | (org.jxref.report.vo.XmlTagEmitable) | 1 | 6 |
getSectionDetail | () | 1 | 7 |
org.jxref.report.vo.Statistic | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
setType | (int) | 3 | 20 |
getFormattedNumber | () | 2 | 31 |
<init> | (java.lang.String, java.lang.Number) | 1 | 13 |
emitXmlTag | (int) | 1 | 25 |
getNumber | () | 1 | 3 |
getType | () | 1 | 3 |
setNumber | (java.lang.Number) | 1 | 4 |
org.jxref.report.vo.TestAnalysisReport | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 3 |
setUp | () | 1 | 56 |
testBasic | () | 1 | 14 |
org.jxref.report.vo.TestErrorDescription | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
testErrorDescriptionBasic | () | 7 | 83 |
<init> | () | 1 | 3 |
org.jxref.report.vo.TestStatistic | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
testStatisticBasic | () | 4 | 45 |
<init> | () | 1 | 3 |
org.jxref.report.vo.ValueDescription | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (java.lang.String, java.lang.String) | 1 | 10 |
emitXmlTag | (int) | 1 | 25 |
org.jxref.report.vo.XmlTagEmitable | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
emitXmlTag | (int) | 1 | 0 |
org.jxref.report.vo.XmlTagUtility | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
asXmlElementText | (int, java.lang.String, org.jxref.report.vo.XmlTagEmitable[]) | 6 | 90 |
asIndentedString | (int) | 2 | 18 |
validateTagName | (java.lang.String, java.lang.String) | 2 | 17 |
<init> | () | 1 | 3 |
asXmlText | (java.lang.String) | 1 | 27 |
org.jxref.search.MethodFilter | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
append | (org.jxref.report.ant.ClassAttributeFilter) | 14 | 124 |
apply | (java.util.Collection) | 8 | 68 |
apply | (org.jxref.inspector.MethodDescriptor[]) | 7 | 57 |
apply | (org.jxref.inspector.MethodReferenceListing[]) | 4 | 33 |
maskApplies | (org.jxref.inspector.MethodIdentifier) | 4 | 27 |
maskApplies | (org.jxref.inspector.MethodDefinition) | 3 | 21 |
<init> | () | 1 | 12 |
getClassNameMask | () | 1 | 3 |
getMethodNameMask | () | 1 | 3 |
getModifierFilter | () | 1 | 3 |
setClassNameMask | (org.jxref.search.StringMask) | 1 | 7 |
setMethodNameMask | (org.jxref.search.StringMask) | 1 | 7 |
setModifierFilter | (org.jxref.search.ModifierFilter) | 1 | 7 |
org.jxref.search.ModifierFilter | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
meetsCriteria | (int) | 7 | 57 |
<init> | (org.jxref.search.ModifierFilterClause) | 2 | 21 |
and | (org.jxref.search.ModifierFilterClause) | 2 | 16 |
or | (org.jxref.search.ModifierFilterClause) | 2 | 16 |
org.jxref.search.ModifierFilter$AndClause | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (org.jxref.search.ModifierFilterClause) | 1 | 6 |
getClause | () | 1 | 3 |
org.jxref.search.ModifierFilter$OrClause | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (org.jxref.search.ModifierFilterClause) | 1 | 6 |
getClause | () | 1 | 3 |
org.jxref.search.ModifierFilterClause | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
meetsClauseCriteria | (int) | 25 | 124 |
<init> | (java.lang.String, boolean) | 13 | 173 |
<init> | () | 1 | 75 |
isConsiderAbstract | () | 1 | 3 |
isConsiderFinal | () | 1 | 3 |
isConsiderInterface | () | 1 | 3 |
isConsiderNative | () | 1 | 3 |
isConsiderPrivate | () | 1 | 3 |
isConsiderProtected | () | 1 | 3 |
isConsiderPublic | () | 1 | 3 |
isConsiderStatic | () | 1 | 3 |
isConsiderStrict | () | 1 | 3 |
isConsiderSynchronized | () | 1 | 3 |
isConsiderTransient | () | 1 | 3 |
isConsiderVolatile | () | 1 | 3 |
setAbstract | (boolean) | 1 | 7 |
setConsiderAbstract | (boolean) | 1 | 4 |
setConsiderFinal | (boolean) | 1 | 4 |
setConsiderInterface | (boolean) | 1 | 4 |
setConsiderNative | (boolean) | 1 | 4 |
setConsiderPrivate | (boolean) | 1 | 4 |
setConsiderProtected | (boolean) | 1 | 4 |
setConsiderPublic | (boolean) | 1 | 4 |
setConsiderStatic | (boolean) | 1 | 4 |
setConsiderStrict | (boolean) | 1 | 4 |
setConsiderSynchronized | (boolean) | 1 | 4 |
setConsiderTransient | (boolean) | 1 | 4 |
setConsiderVolatile | (boolean) | 1 | 4 |
setFinal | (boolean) | 1 | 7 |
setInterface | (boolean) | 1 | 7 |
setNative | (boolean) | 1 | 7 |
setPrivate | (boolean) | 1 | 7 |
setProtected | (boolean) | 1 | 7 |
setPublic | (boolean) | 1 | 7 |
setStatic | (boolean) | 1 | 7 |
setStrict | (boolean) | 1 | 7 |
setSynchronized | (boolean) | 1 | 7 |
setTransient | (boolean) | 1 | 7 |
setVolatile | (boolean) | 1 | 7 |
org.jxref.search.StringMask | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
includeValue | (java.lang.String) | 7 | 58 |
<init> | () | 1 | 13 |
addExcludeMask | (java.lang.String) | 1 | 9 |
addIncludeMask | (java.lang.String) | 1 | 9 |
org.jxref.search.StringMask$Mask | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
doesApply | (java.lang.String) | 11 | 57 |
<init> | (java.lang.String) | 5 | 56 |
org.jxref.search.TestModifierSearchCriteria | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
getNbrTrues | (java.lang.reflect.Method[], org.jxref.search.ModifierFilter) | 3 | 20 |
testAnd | () | 3 | 40 |
setUp | () | 2 | 46 |
testOr | () | 2 | 26 |
<init> | () | 1 | 3 |
org.jxref.search.TestStringSearchCriteria | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 3 |
testIncludeValue | () | 1 | 47 |
org.jxref.sequence.CalledMethod | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (org.jxref.inspector.MethodDescriptor, org.jxref.sequence.CalledMethod, int, int, org.jxref.search.MethodFilter) | 5 | 81 |
emitXmlTag | (int) | 3 | 19 |
<clinit> | () | 2 | 20 |
emitXmlTagWithChildren | (int) | 2 | 69 |
emitXmlTagWithoutChildren | (int) | 1 | 40 |
getCalledMethod | () | 1 | 3 |
getMethodDesc | () | 1 | 3 |
org.jxref.sequence.MethodSequenceFlow | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (org.jxref.inspector.MethodDefinition, int, org.jxref.search.MethodFilter) | 2 | 24 |
emitXmlTag | (int) | 2 | 77 |
<init> | (org.jxref.inspector.MethodDefinition, org.jxref.search.MethodFilter) | 1 | 11 |
org.jxref.util.CollectionUtility | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
intersect | (java.util.Set, java.util.Set) | 5 | 35 |
<init> | () | 1 | 3 |
org.jxref.util.Logger | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (java.lang.String) | 1 | 13 |
debug | (java.lang.String, java.lang.Throwable) | 1 | 6 |
error | (java.lang.String) | 1 | 5 |
fatal | (java.lang.String, java.lang.Throwable) | 1 | 6 |
info | (java.lang.String, java.lang.Throwable) | 1 | 6 |
isDebugEnabled | () | 1 | 4 |
trace | (java.lang.String) | 1 | 5 |
warning | (java.lang.String, java.lang.Throwable) | 1 | 6 |
org.jxref.util.TestCollectionUtility | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
testIntersect | () | 6 | 74 |
<init> | () | 1 | 3 |
org.jxref.util.Validator | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
argNotEmpty | (java.lang.String, java.lang.String) | 2 | 22 |
argNotNull | (java.lang.Object, java.lang.String) | 2 | 16 |
<init> | () | 1 | 3 |
testclasses.MyCalledClass | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
executeMe | () | 2 | 17 |
<init> | () | 1 | 3 |
testclasses.MyCallingClass | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 3 |
doMe | () | 1 | 5 |
testclasses.MyFactory | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 3 |
getMe | () | 1 | 4 |
testclasses.MyInterface | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
executeMe | () | 1 | 0 |
testclasses.MyNastyClass | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | () | 1 | 3 |
testclasses.MyNastyClass$Inner1 | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (testclasses.MyNastyClass) | 1 | 6 |
toString | () | 1 | 9 |
testclasses.MyNastyClass$Inner2 | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (testclasses.MyNastyClass) | 1 | 6 |
testclasses.MyNastyClass$Inner2$Inner3 | |||
Method | Signature | McCabe Complexity | Nbr JVM Instructions |
---|---|---|---|
<init> | (testclasses.MyNastyClass$Inner2) | 1 | 6 |
Glossary |
This section contains a term definitions.
The number of java packages defined in the code analyzed. This is a crude size metric.
The number of java classes defined in the code analyzed. This is a size metric.
The number of java methods (public, protected, and private) defined in the code analyzed. This is a size metric.
The number of machine-language like instructions present in the code analyzed. This is a size metric. This is offered as in liu of 'Lines of Code'. While the number of instructions will not equal the number of lines of code, larger code bases will have a larger number of instructions in most cases.
The average McCabe complexity per class. This is sometimes known as the Weighted Methods per Class (Complexity).
Considered an indicator of classes which may need refactoring.
Sum of the WMC for all classes.
The percentage of classes for which the WMC metric indicates may be in need of refactoring.
The average McCabe complexity per method. Useful for comparing metrics between applications.
The minimum McCabe complexity metric at a method level in the applications. this is typically 1.
The maximum McCabe complexity metric at a method level in the applications.
This is considered an indicator that a method may need to be refactored.
The McCabe complexity metric measures the number of conditions present in a unit of code (e.g. method, class). Conditions can be found in if, while, for, and switch statements among others. The minimum McCabe complexity metric is one. Each condition adds one to the McCabe complexity metric. Higher McCabe complexity metrics indicate larger amounts of conditional logic and code complexity.
You can think of this metric as the minimum number of test conditions present in a unit of code. For example, a method with one if statement with a single condition will have a complexity metric of 2. This unit of code has a minimum of two test cases (if the condition is met/not met) to ensure that all lines of code are executed at least once. It is possible that it has more than two as some input could make one of the execution paths except.
The creator of this metric considers a McCabe complexity of 10 to be the point at which a unit of code needs to be refactored and simplified. This is a somewhat arbitrary choice. Some papers place the alarm threshold at 20 rather than 10.
More information about the McCabe metric can be obtained from here.
The average method-level McCabe complexity metric for a class, package, or application code base. See McCabe Complexity.
The maximum method-level McCabe complexity metric for a class, package, or application code base. See McCabe Complexity.
The sum of all method-level McCabe complexity metrics for a given class. This is sometimes known as the Weighted Methods per Class (or WMC) metric.
Chidamber and Kemerer expanded on McCabe's complexity metric in the early 90's. One of their six metrics for object-oriented systems is the Weighted Methods per Class (WMC) metric, which essentially McCabe complexity metrics summed to a class level.
Classes with a WMC >= 50 may need to be refactored and simplified. See McCabe Complexity
More information about Chidamber and Kemerer's work and the WMC metric can be obtained from here.
Class level complexity (WMC) metric statistics. See Cumulative Complexity (WMC)
This is the number of Java Virtual Machine instructions present in a unit of code (e.g. method, class). It's a size metric provided to give you a relative measurement of application size that can be used to compare with other Java applications. All size metrics have limitations, and the number of JVM instructions is no exception. These limitations include the following: