GMetrics-0.7/ 0000775 0001750 0001750 00000000000 12623566446 012445 5 ustar ebourg ebourg GMetrics-0.7/docs/ 0000775 0001750 0001750 00000000000 12623566446 013375 5 ustar ebourg ebourg GMetrics-0.7/docs/gmetrics-AfferentCouplingMetric.html 0000644 0001750 0001750 00000024504 12463254277 022476 0 ustar ebourg ebourg
Calculates the Afferent Coupling for a package. This is a count of the number of other packages that depend on the classes within this package. It is an indicator of the package's responsibility ([1]). This is a package-level metric.
Implemented by the org.gmetrics.metric.coupling.AfferentCouplingMetric class.
The following properties can be configured for this metric within a MetricSet. See Creating a MetricSet for information on the syntax of setting a metric property.
Property | Description | Default Value |
enabled | This boolean property controls whether the metric is enabled. If set to false, then the metric is not included as part of the results or the output reports. | true |
functions | This List<String> property contains the names of the functions to be calculated at the package level. and (potentially) included within the report(s). Valid values are: - "value" - the value for the current package - "total" - the total value for the current package and its descendant packages - "average" - the average value for the current package and its descendant packages - "referencedFromPackages" - the list of packages that reference classes within the current package | ["value","average"] |
ignorePackageNames | The names of packages to ignore when calculating afferent coupling. This pattern string may contain wildcard characters ('*' or '?'); it may also contain more than one pattern, separated by commas. | null |
Metric for counting the number of lines for classes. Note that this metric measures the number of lines from the first line of the class to the last line of the class. The count includes all program statements, comment lines and whitespace.
Implemented by the org.gmetrics.metric.linecount.ClassLineCountMetric class.
The following properties can be configured for this metric within a MetricSet. See Creating a MetricSet for information on the syntax of setting a metric property.
Property | Description | Default Value |
enabled | This boolean property controls whether the metric is enabled. If set to false, then the metric is not included as part of the results or the output reports. | true |
functions | This List<String> property contains the names of the functions to be calculated at the class and package levels and (potentially) included within the report(s). Valid values are: - "total" - "average" - "minimum" - "maximum" | ["total","average"] |
Report timestamp: Jan 31, 2015 3:48:36 PM
Package/Class/Method | Complexity (total) | Complexity (average) | Method Lines (total) | Method Lines (average) |
---|---|---|---|---|
[p] All packages | 737 | 1.7 | 2786 | 6.3 |
[p] org | 737 | 1.7 | 2786 | 6.3 |
[p] org/gmetrics | 737 | 1.7 | 2786 | 6.3 |
[c] org.gmetrics.GMetricsRunner | 1 | 1.0 | 19 | 19.0 |
[m] execute | 1 | 1 | 19 | 19 |
[p] org/gmetrics/analyzer | 0 | 0.0 | 0 | 0.0 |
[c] org.gmetrics.analyzer.AnalysisContext | N/A | N/A | N/A | N/A |
[c] org.gmetrics.analyzer.SourceAnalyzer | N/A | N/A | N/A | N/A |
[p] org/gmetrics/ant | 38 | 1.7 | 160 | 7.0 |
[c] org.gmetrics.ant.AntFileSetSourceAnalyzer | 28 | 1.8 | 121 | 7.6 |
[m] analyze | 1 | 1 | 8 | 8 |
[m] getSourceDirectories | 1 | 1 | 7 | 7 |
[m] calculatePackageLevelMetricResults | 1 | 1 | 4 | 4 |
[m] calculatePackageLevelMetricResults | 1 | 1 | 5 | 5 |
[m] processFileSet | 2 | 2 | 13 | 13 |
[m] processFile | 4 | 4 | 20 | 20 |
[m] applyMetricsToClass | 1 | 1 | 8 | 8 |
[m] findResultsNodeForPath | 1 | 1 | 3 | 3 |
[m] findPackageResultsNodeForPath | 2 | 2 | 7 | 7 |
[m] findPackageResultsNodeForPath | 1 | 1 | 4 | 4 |
[m] resultFromFirstMatchOrElseNull | 2 | 2 | 7 | 7 |
[m] findOrAddResultsNodeForPath | 3 | 3 | 12 | 12 |
[m] removeBaseDirectoryPrefix | 2 | 2 | 7 | 7 |
[m] removeLeadingSlash | 3 | 3 | 3 | 3 |
[m] afterAllSourceCodeProcessed | 2 | 2 | 7 | 7 |
[m] <init> | 1 | 1 | 6 | 6 |
[c] org.gmetrics.ant.GMetricsTask | 9 | 1.5 | 36 | 6.0 |
[m] execute | 2 | 2 | 15 | 15 |
[m] addFileset | 1 | 1 | 4 | 4 |
[m] addConfiguredReport | 2 | 2 | 10 | 10 |
[m] createMetricSet | 2 | 2 | 3 | 3 |
[m] createSourceAnalyzer | 1 | 1 | 3 | 3 |
[m] createGMetricsRunner | 1 | 1 | 1 | 1 |
[c] org.gmetrics.ant.Report | 1 | 1.0 | 3 | 3.0 |
[m] addConfiguredOption | 1 | 1 | 3 | 3 |
[c] org.gmetrics.ant.ReportOption | N/A | N/A | N/A | N/A |
[p] org/gmetrics/formatter | 4 | 1.3 | 19 | 6.3 |
[c] org.gmetrics.formatter.Formatter | N/A | N/A | N/A | N/A |
[c] org.gmetrics.formatter.FormatterFactory | 1 | 1.0 | 6 | 6.0 |
[m] getFormatter | 1 | 1 | 6 | 6 |
[c] org.gmetrics.formatter.PercentageFormatter | 2 | 2.0 | 10 | 10.0 |
[m] format | 2 | 2 | 10 | 10 |
[c] org.gmetrics.formatter.ToStringFormatter | 1 | 1.0 | 3 | 3.0 |
[m] format | 1 | 1 | 3 | 3 |
[p] org/gmetrics/metric | 305 | 1.6 | 1120 | 6.1 |
[c] org.gmetrics.metric.AbstractAstVisitor | 6 | 1.5 | 16 | 4.0 |
[m] isFirstVisit | 2 | 2 | 7 | 7 |
[m] sourceLine | 1 | 1 | 3 | 3 |
[m] getSourceUnit | 1 | 1 | 3 | 3 |
[m] isSyntheticNonRunMethod | 2 | 2 | 3 | 3 |
[c] org.gmetrics.metric.AbstractMethodMetric | 12 | 2.4 | 55 | 11.0 |
[m] applyToMethod | 2 | 2 | 7 | 7 |
[m] applyToClosure | 2 | 2 | 7 | 7 |
[m] calculateForClass | 3 | 3 | 16 | 16 |
[m] addClosureFieldsToMetricResults | 3 | 3 | 14 | 14 |
[m] addMethodsToMetricResults | 2 | 2 | 11 | 11 |
[c] org.gmetrics.metric.AbstractMetric | 8 | 1.6 | 23 | 4.6 |
[m] applyToPackage | 2 | 2 | 6 | 6 |
[m] calculateForPackage | 1 | 1 | 4 | 4 |
[m] applyToClass | 2 | 2 | 6 | 6 |
[m] isNotAnInterface | 1 | 1 | 3 | 3 |
[m] createAggregateMetricResult | 2 | 2 | 4 | 4 |
[c] org.gmetrics.metric.AstVisitor | N/A | N/A | N/A | N/A |
[c] org.gmetrics.metric.MethodMetric | N/A | N/A | N/A | N/A |
[c] org.gmetrics.metric.Metric | N/A | N/A | N/A | N/A |
[c] org.gmetrics.metric.MetricLevel | 5 | 1.0 | 18 | 3.6 |
[m] parse | 1 | 1 | 3 | 3 |
[m] parseCommaSeparatedList | 1 | 1 | 6 | 6 |
[m] getNames | 1 | 1 | 3 | 3 |
[m] toString | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 3 | 3 |
[c] org.gmetrics.metric.PostProcessingMetric | N/A | N/A | N/A | N/A |
[p] org/gmetrics/metric/abc | 67 | 1.6 | 231 | 5.5 |
[c] org.gmetrics.metric.abc.AbcAstVisitor | 33 | 1.7 | 104 | 5.5 |
[m] visitMethod | 3 | 3 | 6 | 6 |
[m] visitBinaryExpression | 1 | 1 | 4 | 4 |
[m] visitPrefixExpression | 1 | 1 | 4 | 4 |
[m] visitPostfixExpression | 1 | 1 | 4 | 4 |
[m] visitMethodCallExpression | 1 | 1 | 4 | 4 |
[m] visitPropertyExpression | 1 | 1 | 5 | 5 |
[m] visitConstructorCallExpression | 1 | 1 | 4 | 4 |
[m] visitIfElse | 2 | 2 | 6 | 6 |
[m] visitSwitch | 2 | 2 | 7 | 7 |
[m] visitTryCatchFinally | 1 | 1 | 5 | 5 |
[m] visitTernaryExpression | 1 | 1 | 4 | 4 |
[m] visitBooleanExpression | 2 | 2 | 6 | 6 |
[m] visitNotExpression | 2 | 2 | 6 | 6 |
[m] handleExpressionContainingOperation | 5 | 5 | 12 | 12 |
[m] countUnaryConditionals | 4 | 4 | 13 | 13 |
[m] countUnaryConditionals | 1 | 1 | 4 | 4 |
[m] isSingleVariable | 1 | 1 | 3 | 3 |
[m] isFinalVariableDeclaration | 2 | 2 | 4 | 4 |
[m] isNotEmptyStatement | 1 | 1 | 3 | 3 |
[c] org.gmetrics.metric.abc.AbcMetric | 5 | 1.7 | 19 | 6.3 |
[m] calculate | 2 | 2 | 9 | 9 |
[m] calculate | 1 | 1 | 6 | 6 |
[m] createAggregateMetricResult | 2 | 2 | 4 | 4 |
[c] org.gmetrics.metric.abc.AbcVector | 4 | 1.0 | 19 | 4.8 |
[m] getMagnitude | 1 | 1 | 5 | 5 |
[m] toString | 1 | 1 | 3 | 3 |
[m] squared | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 8 | 8 |
[p] org/gmetrics/metric/abc/result | 25 | 1.6 | 89 | 5.6 |
[c] org.gmetrics.metric.abc.result.AbcMetricResult | 4 | 1.3 | 15 | 5.0 |
[m] getAt | 2 | 2 | 3 | 3 |
[m] toString | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 9 | 9 |
[c] org.gmetrics.metric.abc.result.AggregateAbcMetricResult | 21 | 1.6 | 74 | 5.7 |
[m] calculateFunctions | 5 | 5 | 17 | 17 |
[m] getCount | 1 | 1 | 3 | 3 |
[m] getTotalAbcVector | 1 | 1 | 3 | 3 |
[m] getAbcVector | 1 | 1 | 3 | 3 |
[m] getAverageAbcVector | 1 | 1 | 6 | 6 |
[m] getAt | 1 | 1 | 3 | 3 |
[m] toString | 1 | 1 | 3 | 3 |
[m] addChildrenToAbcVector | 1 | 1 | 8 | 8 |
[m] calculateMinimum | 2 | 2 | 4 | 4 |
[m] calculateMaximum | 2 | 2 | 4 | 4 |
[m] includesFunction | 1 | 1 | 3 | 3 |
[m] average | 3 | 3 | 8 | 8 |
[m] <init> | 1 | 1 | 9 | 9 |
[p] org/gmetrics/metric/classcount | 3 | 1.5 | 10 | 5.0 |
[c] org.gmetrics.metric.classcount.ClassCountMetric | 3 | 1.5 | 10 | 5.0 |
[m] calculateForClass | 1 | 1 | 5 | 5 |
[m] calculateForPackage | 2 | 2 | 5 | 5 |
[p] org/gmetrics/metric/coupling | 61 | 1.4 | 242 | 5.6 |
[c] org.gmetrics.metric.coupling.AbstractCouplingReferenceManager | 16 | 1.8 | 47 | 5.2 |
[m] addReferencesFromPackage | 1 | 1 | 6 | 6 |
[m] getPackageMetricResult | 1 | 1 | 4 | 4 |
[m] isSourcePackageOrAncestor | 3 | 3 | 8 | 8 |
[m] sortPackagesWithReferencesWithParentFirst | 1 | 1 | 3 | 3 |
[m] updateStatisticsForAncestorPackage | 4 | 4 | 12 | 12 |
[m] parentPackageName | 2 | 2 | 3 | 3 |
[m] getReferencesFromPackage | 1 | 1 | 4 | 4 |
[m] normalizePackageName | 2 | 2 | 3 | 3 |
[m] <init> | 1 | 1 | 4 | 4 |
[c] org.gmetrics.metric.coupling.AbstractPackageCouplingMetric | 2 | 1.0 | 13 | 6.5 |
[m] calculateForClass | 1 | 1 | 10 | 10 |
[m] <init> | 1 | 1 | 3 | 3 |
[c] org.gmetrics.metric.coupling.AfferentCouplingMetric | 4 | 1.3 | 16 | 5.3 |
[m] calculateForPackage | 2 | 2 | 9 | 9 |
[m] afterAllSourceCodeProcessed | 1 | 1 | 4 | 4 |
[m] getMetricResult | 1 | 1 | 3 | 3 |
[c] org.gmetrics.metric.coupling.AfferentCouplingReferenceManager | 6 | 1.2 | 33 | 6.6 |
[m] updateStatisticsForAllPackages | 1 | 1 | 6 | 6 |
[m] createEmptyMetricResult | 1 | 1 | 4 | 4 |
[m] applyReverseReferencesForPackage | 2 | 2 | 13 | 13 |
[m] updateStatisticsForAllAncestorPackages | 1 | 1 | 7 | 7 |
[m] <init> | 1 | 1 | 3 | 3 |
[c] org.gmetrics.metric.coupling.EfferentCouplingMetric | 4 | 1.3 | 16 | 5.3 |
[m] calculateForPackage | 2 | 2 | 9 | 9 |
[m] getMetricResult | 1 | 1 | 3 | 3 |
[m] afterAllSourceCodeProcessed | 1 | 1 | 4 | 4 |
[c] org.gmetrics.metric.coupling.EfferentCouplingReferenceManager | 6 | 1.0 | 33 | 5.5 |
[m] updateStatisticsForAllPackages | 1 | 1 | 6 | 6 |
[m] createEmptyMetricResult | 1 | 1 | 4 | 4 |
[m] applyReferencesForPackage | 1 | 1 | 10 | 10 |
[m] updateStatisticsForAllAncestorPackages | 1 | 1 | 7 | 7 |
[m] isSourcePackage | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 3 | 3 |
[c] org.gmetrics.metric.coupling.PackageReferenceAstVisitor | 23 | 1.5 | 84 | 5.6 |
[m] visitClass | 1 | 1 | 10 | 10 |
[m] visitField | 1 | 1 | 4 | 4 |
[m] visitConstructorCallExpression | 1 | 1 | 5 | 5 |
[m] visitVariableExpression | 1 | 1 | 5 | 5 |
[m] visitConstructorOrMethod | 1 | 1 | 8 | 8 |
[m] visitClosureExpression | 1 | 1 | 7 | 7 |
[m] visitCastExpression | 1 | 1 | 5 | 5 |
[m] visitClassExpression | 1 | 1 | 5 | 5 |
[m] visitPropertyExpression | 2 | 2 | 7 | 7 |
[m] visitImports | 2 | 2 | 9 | 9 |
[m] checkType | 1 | 1 | 3 | 3 |
[m] checkTypeName | 1 | 1 | 4 | 4 |
[m] checkPackageName | 5 | 5 | 6 | 6 |
[m] isValidPackageReference | 3 | 3 | 3 | 3 |
[m] <init> | 1 | 1 | 3 | 3 |
[p] org/gmetrics/metric/coverage | 82 | 1.6 | 348 | 6.8 |
[c] org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric | 27 | 1.9 | 120 | 8.6 |
[m] applyToMethod | 2 | 2 | 7 | 7 |
[m] applyToClosure | 1 | 1 | 4 | 4 |
[m] calculateForClass | 4 | 4 | 21 | 21 |
[m] calculateForPackage | 5 | 5 | 16 | 16 |
[m] calculate | 1 | 1 | 5 | 5 |
[m] getCoverageRatioForClass | 1 | 1 | 10 | 10 |
[m] calculateCoverageForClassAndInnerClasses | 1 | 1 | 4 | 4 |
[m] getOverallPackageMetricValue | 1 | 1 | 4 | 4 |
[m] buildMethodResults | 3 | 3 | 16 | 16 |
[m] calculateMethodResult | 2 | 2 | 9 | 9 |
[m] logMissingMethodCoverageInformation | 2 | 2 | 6 | 6 |
[m] findMethodElement | 1 | 1 | 6 | 6 |
[m] containsClasses | 1 | 1 | 3 | 3 |
[m] getCoberturaCoverageFile | 2 | 2 | 9 | 9 |
[c] org.gmetrics.metric.coverage.CoberturaBranchCoverageMetric | 4 | 1.3 | 26 | 8.7 |
[m] getCoverageRatioForSingleClass | 2 | 2 | 10 | 10 |
[m] findLineElementsWithBranches | 1 | 1 | 3 | 3 |
[m] getBranchCoverageRatio | 1 | 1 | 13 | 13 |
[c] org.gmetrics.metric.coverage.CoberturaCoverageFile | 14 | 1.3 | 69 | 6.3 |
[m] getOverallCoverageRate | 1 | 1 | 4 | 4 |
[m] parseCoverageRate | 1 | 1 | 5 | 5 |
[m] findPackageElement | 1 | 1 | 4 | 4 |
[m] findClassElement | 1 | 1 | 4 | 4 |
[m] findInnerClasses | 1 | 1 | 4 | 4 |
[m] hasInnerClasses | 1 | 1 | 3 | 3 |
[m] findMethodElement | 2 | 2 | 11 | 11 |
[m] findAllMethodElements | 2 | 2 | 7 | 7 |
[m] getCoberturaXml | 2 | 2 | 12 | 12 |
[m] createNonValidatingXmlSlurper | 1 | 1 | 11 | 11 |
[m] <init> | 1 | 1 | 4 | 4 |
[c] org.gmetrics.metric.coverage.CoberturaLineCoverageMetric | 3 | 1.5 | 15 | 7.5 |
[m] getCoverageRatioForSingleClass | 2 | 2 | 10 | 10 |
[m] getLinesCoverageRatio | 1 | 1 | 5 | 5 |
[c] org.gmetrics.metric.coverage.CoberturaSignatureParser | 20 | 2.0 | 75 | 7.5 |
[m] matchesCoberturaMethod | 2 | 2 | 8 | 8 |
[m] numberOfParameters | 1 | 1 | 3 | 3 |
[m] parseSignatureParameterTypes | 3 | 3 | 16 | 16 |
[m] extractParameters | 1 | 1 | 5 | 5 |
[m] parseCoberturaSignatureParameterTypes | 2 | 2 | 7 | 7 |
[m] parseParameterTypes | 2 | 2 | 12 | 12 |
[m] processStandaloneCharacter | 4 | 4 | 11 | 11 |
[m] processCharacterWithinFullyQualifiedTypeName | 2 | 2 | 8 | 8 |
[m] classNameNoPackage | 2 | 2 | 4 | 4 |
[m] <init> | 1 | 1 | 1 | 1 |
[c] org.gmetrics.metric.coverage.CoberturaSignatureParser$ParseContext | 8 | 1.3 | 23 | 3.8 |
[m] startFullyQualifiedTypeName | 1 | 1 | 3 | 3 |
[m] withinFullyQualifiedTypeName | 1 | 1 | 3 | 3 |
[m] appendToFullyQualifiedTypeName | 1 | 1 | 3 | 3 |
[m] terminateFullyQualifiedTypeName | 2 | 2 | 6 | 6 |
[m] startNewArrayType | 1 | 1 | 3 | 3 |
[m] processPrimitiveTypeCode | 2 | 2 | 5 | 5 |
[c] org.gmetrics.metric.coverage.Ratio | 6 | 1.2 | 20 | 4.0 |
[m] plus | 1 | 1 | 4 | 4 |
[m] toBigDecimal | 2 | 2 | 4 | 4 |
[m] asType | 1 | 1 | 4 | 4 |
[m] toString | 1 | 1 | 4 | 4 |
[m] <init> | 1 | 1 | 4 | 4 |
[p] org/gmetrics/metric/crap | 10 | 3.3 | 36 | 12.0 |
[c] org.gmetrics.metric.crap.CrapMetric | 10 | 3.3 | 36 | 12.0 |
[m] calculate | 1 | 1 | 4 | 4 |
[m] calculate | 6 | 6 | 24 | 24 |
[m] calculateCrapScore | 3 | 3 | 8 | 8 |
[p] org/gmetrics/metric/cyclomatic | 20 | 1.5 | 63 | 4.8 |
[c] org.gmetrics.metric.cyclomatic.CyclomaticComplexityAstVisitor | 16 | 1.5 | 51 | 4.6 |
[m] visitMethod | 3 | 3 | 8 | 8 |
[m] visitIfElse | 1 | 1 | 4 | 4 |
[m] visitWhileLoop | 1 | 1 | 4 | 4 |
[m] visitForLoop | 1 | 1 | 4 | 4 |
[m] visitSwitch | 1 | 1 | 4 | 4 |
[m] visitCatchStatement | 1 | 1 | 4 | 4 |
[m] visitBinaryExpression | 1 | 1 | 4 | 4 |
[m] visitTernaryExpression | 1 | 1 | 4 | 4 |
[m] visitMethodCallExpression | 2 | 2 | 5 | 5 |
[m] visitPropertyExpression | 2 | 2 | 4 | 4 |
[m] handleExpressionContainingOperation | 2 | 2 | 6 | 6 |
[c] org.gmetrics.metric.cyclomatic.CyclomaticComplexityMetric | 4 | 2.0 | 12 | 6.0 |
[m] calculate | 2 | 2 | 6 | 6 |
[m] calculate | 2 | 2 | 6 | 6 |
[p] org/gmetrics/metric/fieldcount | 8 | 2.7 | 19 | 6.3 |
[c] org.gmetrics.metric.fieldcount.FieldCountAstVisitor | 6 | 3.0 | 10 | 5.0 |
[m] getNumberOfFields | 1 | 1 | 3 | 3 |
[m] visitClass | 5 | 5 | 7 | 7 |
[c] org.gmetrics.metric.fieldcount.FieldCountMetric | 2 | 2.0 | 9 | 9.0 |
[m] calculateForClass | 2 | 2 | 9 | 9 |
[p] org/gmetrics/metric/linecount | 12 | 2.0 | 38 | 6.3 |
[c] org.gmetrics.metric.linecount.ClassLineCountMetric | 2 | 2.0 | 9 | 9.0 |
[m] calculateForClass | 2 | 2 | 9 | 9 |
[c] org.gmetrics.metric.linecount.ClassLineCountAstVisitor | 2 | 2.0 | 6 | 6.0 |
[m] visitClass | 2 | 2 | 6 | 6 |
[c] org.gmetrics.metric.linecount.MethodLineCountAstVisitor | 5 | 2.5 | 12 | 6.0 |
[m] visitMethod | 3 | 3 | 6 | 6 |
[m] visitClosureExpression | 2 | 2 | 6 | 6 |
[c] org.gmetrics.metric.linecount.MethodLineCountMetric | 3 | 1.5 | 11 | 5.5 |
[m] calculate | 2 | 2 | 6 | 6 |
[m] calculate | 1 | 1 | 5 | 5 |
[p] org/gmetrics/metric/methodcount | 11 | 3.7 | 21 | 7.0 |
[c] org.gmetrics.metric.methodcount.MethodCountAstVisitor | 9 | 4.5 | 12 | 6.0 |
[m] getNumberOfMethods | 1 | 1 | 3 | 3 |
[m] visitClass | 8 | 8 | 9 | 9 |
[c] org.gmetrics.metric.methodcount.MethodCountMetric | 2 | 2.0 | 9 | 9.0 |
[m] calculateForClass | 2 | 2 | 9 | 9 |
[p] org/gmetrics/metricregistry | 3 | 1.0 | 16 | 5.3 |
[c] org.gmetrics.metricregistry.DefaultMetricRegistry | 3 | 1.0 | 16 | 5.3 |
[m] getMetricClass | 1 | 1 | 4 | 4 |
[m] getAllMetricNames | 1 | 1 | 4 | 4 |
[m] buildMetricClassMap | 1 | 1 | 8 | 8 |
[c] org.gmetrics.metricregistry.MetricRegistry | N/A | N/A | N/A | N/A |
[c] org.gmetrics.metricregistry.MetricRegistryHolder | N/A | N/A | N/A | N/A |
[p] org/gmetrics/metricset | 30 | 1.2 | 143 | 5.7 |
[c] org.gmetrics.metricset.CompositeMetricSet | 3 | 1.0 | 11 | 3.7 |
[m] addMetric | 1 | 1 | 4 | 4 |
[m] addMetricSet | 1 | 1 | 4 | 4 |
[m] getMetrics | 1 | 1 | 3 | 3 |
[c] org.gmetrics.metricset.DefaultMetricSet | 1 | 1.0 | 3 | 3.0 |
[m] getMetrics | 1 | 1 | 3 | 3 |
[c] org.gmetrics.metricset.GroovyDslMetricSet | 2 | 1.0 | 21 | 10.5 |
[m] getMetrics | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 18 | 18 |
[c] org.gmetrics.metricset.ListMetricSet | 2 | 1.0 | 10 | 5.0 |
[m] getMetrics | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 7 | 7 |
[c] org.gmetrics.metricset.MetricSet | N/A | N/A | N/A | N/A |
[c] org.gmetrics.metricset.MetricSetBuilder | 2 | 1.0 | 7 | 3.5 |
[m] metricset | 1 | 1 | 4 | 4 |
[m] getMetricSet | 1 | 1 | 3 | 3 |
[c] org.gmetrics.metricset.TopLevelDelegate | 16 | 1.3 | 70 | 5.8 |
[m] metricset | 1 | 1 | 4 | 4 |
[m] metricset | 1 | 1 | 10 | 10 |
[m] metric | 1 | 1 | 5 | 5 |
[m] metric | 1 | 1 | 6 | 6 |
[m] metric | 1 | 1 | 10 | 10 |
[m] propertyMissing | 2 | 2 | 5 | 5 |
[m] methodMissing | 3 | 3 | 10 | 10 |
[m] description | 1 | 1 | 4 | 4 |
[m] getMetricSet | 1 | 1 | 3 | 3 |
[m] assertClassImplementsMetricInterface | 1 | 1 | 4 | 4 |
[m] addMetric | 2 | 2 | 6 | 6 |
[m] isNotWithinAnotherMetricDefinition | 1 | 1 | 3 | 3 |
[c] org.gmetrics.metricset.MetricSetDelegate | 4 | 1.3 | 21 | 7.0 |
[m] methodMissing | 2 | 2 | 15 | 15 |
[m] findMetric | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 3 | 3 |
[p] org/gmetrics/report | 138 | 1.7 | 658 | 7.9 |
[c] org.gmetrics.report.AbstractMetricCriteriaFilter | N/A | N/A | N/A | N/A |
[c] org.gmetrics.report.AbstractReportWriter | 20 | 1.7 | 76 | 6.3 |
[m] writeReport | 2 | 2 | 14 | 14 |
[m] writeReportToStandardOut | 1 | 1 | 4 | 4 |
[m] writeReportToFile | 2 | 2 | 8 | 8 |
[m] initializeDefaultResourceBundle | 2 | 2 | 12 | 12 |
[m] getResourceBundleString | 2 | 2 | 9 | 9 |
[m] getResourceBundleStringOrNull | 2 | 2 | 9 | 9 |
[m] initializeFormatters | 2 | 2 | 7 | 7 |
[m] formatMetricResultValue | 2 | 2 | 4 | 4 |
[m] getFormattedTimestamp | 1 | 1 | 4 | 4 |
[m] isWriteToStandardOut | 2 | 2 | 3 | 3 |
[m] initializeResourceBundle | 1 | 1 | 1 | 1 |
[m] getTimestamp | 1 | 1 | 1 | 1 |
[c] org.gmetrics.report.BasicHtmlReportWriter | 32 | 1.9 | 177 | 10.4 |
[m] writeReport | 1 | 1 | 17 | 17 |
[m] buildMetricResultColumns | 2 | 2 | 11 | 11 |
[m] buildCSS | 1 | 1 | 8 | 8 |
[m] buildHeaderSection | 1 | 1 | 8 | 8 |
[m] buildBodySection | 1 | 1 | 11 | 11 |
[m] buildReportTimestamp | 1 | 1 | 6 | 6 |
[m] buildResultsTable | 2 | 2 | 17 | 17 |
[m] getMetricResultColumnHeading | 1 | 1 | 4 | 4 |
[m] setReportLevels | 1 | 1 | 3 | 3 |
[m] includesReportLevel | 2 | 2 | 3 | 3 |
[m] buildResultsTableRowRecursively | 10 | 10 | 33 | 33 |
[m] buildResultsRowsForChildren | 2 | 2 | 9 | 9 |
[m] prefixForResultsNodeLevel | 1 | 1 | 8 | 8 |
[m] buildMetricDescriptions | 2 | 2 | 24 | 24 |
[m] getDescriptionForMetricName | 1 | 1 | 4 | 4 |
[m] buildVersionFooter | 1 | 1 | 8 | 8 |
[m] buildTitle | 2 | 2 | 3 | 3 |
[c] org.gmetrics.report.FunctionsCriteriaFilter | 2 | 1.0 | 6 | 3.0 |
[m] setFunctions | 1 | 1 | 3 | 3 |
[m] includesFunction | 1 | 1 | 3 | 3 |
[c] org.gmetrics.report.LevelsCriteriaFilter | 2 | 1.0 | 6 | 3.0 |
[m] setLevels | 1 | 1 | 3 | 3 |
[m] includesLevel | 1 | 1 | 3 | 3 |
[c] org.gmetrics.report.MetricCriteriaFilterHelper | 6 | 1.5 | 23 | 5.8 |
[m] includesName | 3 | 3 | 7 | 7 |
[m] parseCriteria | 1 | 1 | 7 | 7 |
[m] parseCriteriaForSingleMetric | 1 | 1 | 6 | 6 |
[m] parseCommaSeparatedList | 1 | 1 | 3 | 3 |
[c] org.gmetrics.report.MetricsCriteriaFilter | 3 | 1.5 | 6 | 3.0 |
[m] setMetrics | 1 | 1 | 3 | 3 |
[m] includesMetric | 2 | 2 | 3 | 3 |
[c] org.gmetrics.report.ReportWriter | N/A | N/A | N/A | N/A |
[c] org.gmetrics.report.SeriesValue | 2 | 1.0 | 7 | 3.5 |
[m] toString | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 4 | 4 |
[c] org.gmetrics.report.SingleSeriesCriteriaFilter | 33 | 1.9 | 131 | 7.7 |
[m] buildSeriesData | 1 | 1 | 20 | 20 |
[m] findMatchingValuesForChildren | 1 | 1 | 6 | 6 |
[m] getResultsNodeFullName | 3 | 3 | 14 | 14 |
[m] findMatchingValues | 4 | 4 | 15 | 15 |
[m] sortValuesIfApplicable | 3 | 3 | 9 | 9 |
[m] limitToGreaterThanIfApplicable | 2 | 2 | 7 | 7 |
[m] limitToLessThanIfApplicable | 2 | 2 | 7 | 7 |
[m] limitToMaxResultsIfApplicable | 3 | 3 | 9 | 9 |
[m] assertMetricExists | 1 | 1 | 4 | 4 |
[m] assertLevelExists | 1 | 1 | 3 | 3 |
[m] assertFunctionExists | 1 | 1 | 4 | 4 |
[m] assertValidSortValue | 2 | 2 | 3 | 3 |
[m] assertValidMaxResultsValue | 3 | 3 | 11 | 11 |
[m] assertValidGreaterThanValue | 1 | 1 | 3 | 3 |
[m] assertValidLessThanValue | 1 | 1 | 3 | 3 |
[m] assertValidNumberValue | 3 | 3 | 10 | 10 |
[m] findMetric | 1 | 1 | 3 | 3 |
[c] org.gmetrics.report.SingleSeriesHtmlReportWriter | 11 | 1.1 | 96 | 9.6 |
[m] writeReport | 1 | 1 | 18 | 18 |
[m] buildHeaderSection | 1 | 1 | 8 | 8 |
[m] buildCSS | 1 | 1 | 8 | 8 |
[m] buildBodySection | 2 | 2 | 13 | 13 |
[m] buildReportTimestamp | 1 | 1 | 6 | 6 |
[m] buildResultsTable | 1 | 1 | 13 | 13 |
[m] getSeriesValueNameHeading | 1 | 1 | 9 | 9 |
[m] buildSeriesValueRow | 1 | 1 | 9 | 9 |
[m] getMetricResultColumnHeading | 1 | 1 | 4 | 4 |
[m] buildVersionFooter | 1 | 1 | 8 | 8 |
[c] org.gmetrics.report.XmlReportWriter | 27 | 1.8 | 130 | 8.7 |
[m] writeReport | 1 | 1 | 17 | 17 |
[m] buildReportElement | 1 | 1 | 5 | 5 |
[m] buildProjectElement | 1 | 1 | 9 | 9 |
[m] buildPackageElements | 1 | 1 | 3 | 3 |
[m] buildElement | 4 | 4 | 7 | 7 |
[m] buildPackageElement | 5 | 5 | 20 | 20 |
[m] buildClassElement | 1 | 1 | 11 | 11 |
[m] buildMethodElement | 1 | 1 | 10 | 10 |
[m] buildMetricElements | 1 | 1 | 7 | 7 |
[m] buildMetricElement | 6 | 6 | 14 | 14 |
[m] isRoot | 1 | 1 | 3 | 3 |
[m] buildMetricsElement | 1 | 1 | 14 | 14 |
[m] getDescriptionForMetric | 1 | 1 | 4 | 4 |
[m] isPackage | 1 | 1 | 3 | 3 |
[m] cdata | 1 | 1 | 3 | 3 |
[p] org/gmetrics/result | 49 | 1.5 | 160 | 4.8 |
[c] org.gmetrics.result.ClassMetricResult | 2 | 1.0 | 7 | 3.5 |
[m] toString | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 4 | 4 |
[c] org.gmetrics.result.FunctionNames | N/A | N/A | N/A | N/A |
[c] org.gmetrics.result.MapMetricResult | 3 | 1.0 | 17 | 5.7 |
[m] getAt | 1 | 1 | 4 | 4 |
[m] toString | 1 | 1 | 4 | 4 |
[m] <init> | 1 | 1 | 9 | 9 |
[c] org.gmetrics.result.MethodKey | 6 | 1.2 | 23 | 4.6 |
[m] equals | 2 | 2 | 4 | 4 |
[m] hashCode | 1 | 1 | 4 | 4 |
[m] toString | 1 | 1 | 4 | 4 |
[m] <init> | 1 | 1 | 5 | 5 |
[m] <init> | 1 | 1 | 6 | 6 |
[c] org.gmetrics.result.MetricResult | N/A | N/A | N/A | N/A |
[c] org.gmetrics.result.MetricResultBuilder | 28 | 2.2 | 61 | 4.7 |
[m] createAggregateMetricResult | 1 | 1 | 13 | 13 |
[m] toString | 1 | 1 | 3 | 3 |
[m] calculateFunctions | 1 | 1 | 10 | 10 |
[m] calculateCount | 1 | 1 | 3 | 3 |
[m] total | 3 | 3 | 3 | 3 |
[m] calculateTotal | 2 | 2 | 5 | 5 |
[m] minimum | 3 | 3 | 3 | 3 |
[m] calculateMinimum | 2 | 2 | 4 | 4 |
[m] maximum | 3 | 3 | 3 | 3 |
[m] calculateMaximum | 2 | 2 | 4 | 4 |
[m] average | 3 | 3 | 3 | 3 |
[m] shouldCalculateFunction | 3 | 3 | 3 | 3 |
[m] isFunctionSpecifiedOrImplied | 3 | 3 | 4 | 4 |
[c] org.gmetrics.result.MutableMapMetricResult | 4 | 1.0 | 19 | 4.8 |
[m] getAt | 1 | 1 | 4 | 4 |
[m] putAt | 1 | 1 | 3 | 3 |
[m] toString | 1 | 1 | 4 | 4 |
[m] <init> | 1 | 1 | 8 | 8 |
[c] org.gmetrics.result.NumberMetricResult | 3 | 1.0 | 16 | 5.3 |
[m] getAt | 1 | 1 | 3 | 3 |
[m] toString | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 10 | 10 |
[c] org.gmetrics.result.SingleNumberMetricResult | 3 | 1.0 | 17 | 5.7 |
[m] getAt | 1 | 1 | 4 | 4 |
[m] toString | 1 | 1 | 4 | 4 |
[m] <init> | 1 | 1 | 9 | 9 |
[p] org/gmetrics/resultsnode | 27 | 1.2 | 102 | 4.6 |
[c] org.gmetrics.resultsnode.ClassResultsNode | 9 | 1.3 | 34 | 4.9 |
[m] containsClassResults | 1 | 1 | 3 | 3 |
[m] getMetricResult | 1 | 1 | 4 | 4 |
[m] addClassMetricResult | 2 | 2 | 10 | 10 |
[m] toString | 1 | 1 | 3 | 3 |
[m] addMethodMetricResult | 2 | 2 | 6 | 6 |
[m] <init> | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 5 | 5 |
[c] org.gmetrics.resultsnode.MethodResultsNode | 7 | 1.0 | 24 | 3.4 |
[m] containsClassResults | 1 | 1 | 3 | 3 |
[m] getMetricResult | 1 | 1 | 4 | 4 |
[m] addMetricResult | 1 | 1 | 4 | 4 |
[m] getChildren | 1 | 1 | 3 | 3 |
[m] toString | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 4 | 4 |
[c] org.gmetrics.resultsnode.PackageResultsNode | 11 | 1.4 | 44 | 5.5 |
[m] getChildren | 1 | 1 | 3 | 3 |
[m] containsClassResults | 1 | 1 | 3 | 3 |
[m] getMetricResult | 1 | 1 | 4 | 4 |
[m] addChildIfNotEmpty | 2 | 2 | 7 | 7 |
[m] addChild | 1 | 1 | 5 | 5 |
[m] applyMetric | 3 | 3 | 14 | 14 |
[m] toString | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 5 | 5 |
[c] org.gmetrics.resultsnode.ResultsNode | N/A | N/A | N/A | N/A |
[p] org/gmetrics/source | 37 | 2.1 | 111 | 6.2 |
[c] org.gmetrics.source.AbstractSourceCode | 16 | 2.7 | 51 | 8.5 |
[m] getLines | 2 | 2 | 6 | 6 |
[m] line | 3 | 3 | 5 | 5 |
[m] getAst | 3 | 3 | 16 | 16 |
[m] getLineNumberForCharacterIndex | 5 | 5 | 16 | 16 |
[m] isValid | 1 | 1 | 3 | 3 |
[m] normalizePath | 2 | 2 | 5 | 5 |
[c] org.gmetrics.source.SourceCode | N/A | N/A | N/A | N/A |
[c] org.gmetrics.source.SourceCodeCriteria | 8 | 8.0 | 17 | 17.0 |
[m] matches | 8 | 8 | 17 | 17 |
[c] org.gmetrics.source.SourceFile | 7 | 1.2 | 25 | 4.2 |
[m] getName | 1 | 1 | 3 | 3 |
[m] getPath | 1 | 1 | 3 | 3 |
[m] getText | 2 | 2 | 6 | 6 |
[m] toString | 1 | 1 | 3 | 3 |
[m] createSourceUnit | 1 | 1 | 5 | 5 |
[m] <init> | 1 | 1 | 5 | 5 |
[c] org.gmetrics.source.SourceString | 6 | 1.2 | 18 | 3.6 |
[m] getText | 1 | 1 | 3 | 3 |
[m] setPath | 2 | 2 | 3 | 3 |
[m] toString | 1 | 1 | 3 | 3 |
[m] createSourceUnit | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 6 | 6 |
[p] org/gmetrics/util | 105 | 2.4 | 278 | 6.5 |
[c] org.gmetrics.util.AstUtil | 40 | 2.7 | 94 | 6.3 |
[m] isEmptyMethod | 1 | 1 | 3 | 3 |
[m] isClosureField | 2 | 2 | 3 | 3 |
[m] isBlock | 1 | 1 | 3 | 3 |
[m] isEmptyBlock | 4 | 4 | 5 | 5 |
[m] getMethodArguments | 3 | 3 | 10 | 10 |
[m] isMethodCall | 3 | 3 | 10 | 10 |
[m] isMethodCall | 2 | 2 | 4 | 4 |
[m] isMethodCall | 3 | 3 | 9 | 9 |
[m] isMethodNamed | 1 | 1 | 4 | 4 |
[m] getAnnotation | 2 | 2 | 6 | 6 |
[m] getVariableExpressions | 9 | 9 | 16 | 16 |
[m] isFinalVariable | 4 | 4 | 14 | 14 |
[m] isFromGeneratedSourceCode | 3 | 3 | 3 | 3 |
[m] respondsTo | 1 | 1 | 3 | 3 |
[m] <init> | 1 | 1 | 1 | 1 |
[c] org.gmetrics.util.Calculator | 4 | 2.0 | 8 | 4.0 |
[m] calculateAverage | 3 | 3 | 7 | 7 |
[m] <init> | 1 | 1 | 1 | 1 |
[c] org.gmetrics.util.ClassNameUtil | 14 | 2.3 | 26 | 4.3 |
[m] parentPackageName | 3 | 3 | 7 | 7 |
[m] isPackageName | 2 | 2 | 4 | 4 |
[m] isClassName | 2 | 2 | 4 | 4 |
[m] getNameOnly | 4 | 4 | 7 | 7 |
[m] isCapitalized | 2 | 2 | 3 | 3 |
[m] <init> | 1 | 1 | 1 | 1 |
[c] org.gmetrics.util.GMetricsVersion | 1 | 1.0 | 3 | 3.0 |
[m] getVersion | 1 | 1 | 3 | 3 |
[c] org.gmetrics.util.ImportUtil | 4 | 4.0 | 11 | 11.0 |
[m] packageNameForImport | 4 | 4 | 11 | 11 |
[c] org.gmetrics.util.PathUtil | 13 | 2.6 | 33 | 6.6 |
[m] getName | 3 | 3 | 7 | 7 |
[m] getParent | 3 | 3 | 9 | 9 |
[m] normalize | 2 | 2 | 3 | 3 |
[m] toPackageName | 4 | 4 | 13 | 13 |
[m] <init> | 1 | 1 | 1 | 1 |
[c] org.gmetrics.util.PropertyUtil | 6 | 3.0 | 23 | 11.5 |
[m] setPropertyFromString | 5 | 5 | 22 | 22 |
[m] <init> | 1 | 1 | 1 | 1 |
[c] org.gmetrics.util.WildcardPattern | 13 | 3.3 | 46 | 11.5 |
[m] matches | 4 | 4 | 7 | 7 |
[m] containsWildcards | 1 | 1 | 3 | 3 |
[m] convertStringWithWildcardsToRegex | 5 | 5 | 24 | 24 |
[m] <init> | 3 | 3 | 12 | 12 |
[p] org/gmetrics/util/io | 10 | 1.4 | 34 | 4.9 |
[c] org.gmetrics.util.io.ClassPathResource | 4 | 1.3 | 14 | 4.7 |
[m] getInputStream | 1 | 1 | 3 | 3 |
[m] getInputStream | 2 | 2 | 7 | 7 |
[m] <init> | 1 | 1 | 4 | 4 |
[c] org.gmetrics.util.io.DefaultResourceFactory | 4 | 2.0 | 12 | 6.0 |
[m] getResource | 3 | 3 | 9 | 9 |
[m] isUrl | 1 | 1 | 3 | 3 |
[c] org.gmetrics.util.io.Resource | N/A | N/A | N/A | N/A |
[c] org.gmetrics.util.io.ResourceFactory | N/A | N/A | N/A | N/A |
[c] org.gmetrics.util.io.UrlResource | 2 | 1.0 | 8 | 4.0 |
[m] getInputStream | 1 | 1 | 4 | 4 |
[m] <init> | 1 | 1 | 4 | 4 |
# | Metric Name | Description |
---|---|---|
1 | CyclomaticComplexity | Measures the (McCabe) Cyclomatic Complexity of source code. See the Wikipedia entry for Cyclomatic Complexity. |
2 | MethodLineCount | Counts the number of lines in each method. |