A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

AbcAstVisitor - Class in org.gmetrics.metric.abc
AST Visitor for calculating the ABC Metric for a class/method.
AbcMetric - Class in org.gmetrics.metric.abc
Calculate the ABC Metric for a class/method.
AbcMetricResult - Class in org.gmetrics.metric.abc.result
A MetricResult specifically for the ABC metric
AbcMetricResult(Metric, MetricLevel, AbcVector, Integer) - Constructor in AbcMetricResult
AbcVector - Class in org.gmetrics.metric.abc
Represents a single ABC Metric result: a vector of the three A, B, C values.
AbcVector(int, int, int) - Constructor in AbcVector
AbstractAstVisitor - Class in org.gmetrics.metric
Abstract superclass for Groovy AST Visitors
AbstractCoberturaCoverageMetric - Class in org.gmetrics.metric.coverage
Abstract superclass for metrics that provide test code coverage from a Cobertura XML file.
AbstractCouplingReferenceManager - Class in org.gmetrics.metric.coupling
Abstract superclass for Afferent/efferent coupling reference manager classes.
AbstractCouplingReferenceManager(Metric) - Constructor in AbstractCouplingReferenceManager
AbstractMethodMetric - Class in org.gmetrics.metric
Abstract superclass for method-based metrics.
AbstractMetric - Class in org.gmetrics.metric
Abstract superclass for metrics.
AbstractMetricCriteriaFilter - Class in org.gmetrics.report
AbstractPackageCouplingMetric - Class in org.gmetrics.metric.coupling
Abstract superclass for Metrics that measure package-level coupling.
AbstractPackageCouplingMetric() - Constructor in AbstractPackageCouplingMetric
AbstractReportWriter - Class in org.gmetrics.report
Abstract superclass for ReportWriter implementation classes.
AbstractSourceCode - Class in org.gmetrics.source
Abstract superclass for SourceCode implementations
addChild(String, ResultsNode) - Method in PackageResultsNode
addChildIfNotEmpty(String, ResultsNode) - Method in PackageResultsNode
addClassMetricResult(ClassMetricResult) - Method in ClassResultsNode
addConfiguredOption(ReportOption) - Method in Report
addConfiguredReport(Report) - Method in GMetricsTask
Ant-defined method (by convention), called with each instance of a nested element within this task.
addFileset(FileSet) - Method in GMetricsTask
Ant-defined method (by convention), called with each instance of a nested element within this task.
addMetric(Metric) - Method in CompositeMetricSet
Add a single Metric to this MetricSet
addMetricResult(MetricResult) - Method in MethodResultsNode
addMetricSet(MetricSet) - Method in CompositeMetricSet
Add all of the Metrics within the specified MetricSet to this MetricSet
addReferencesFromPackage(String, Collection<String>) - Method in AbstractCouplingReferenceManager
AfferentCouplingMetric - Class in org.gmetrics.metric.coupling
Metric for counting the number of other packages that depend on the classes within this package.
AfferentCouplingReferenceManager - Class in org.gmetrics.metric.coupling
Maintains a mapping of packageName -> packages that reference it, as well as a reference to a MetricResult for the associated PackageResultsNode.
AfferentCouplingReferenceManager(Metric) - Constructor in AfferentCouplingReferenceManager
afterAllSourceCodeProcessed() - Method in AfferentCouplingMetric
afterAllSourceCodeProcessed() - Method in EfferentCouplingMetric
afterAllSourceCodeProcessed() - Method in PostProcessingMetric
AggregateAbcMetricResult - Class in org.gmetrics.metric.abc.result
An aggregate MetricResult implementation specifically for the ABC Metric.
AggregateAbcMetricResult(Metric, MetricLevel, Collection, Integer) - Constructor in AggregateAbcMetricResult
AnalysisContext - Class in org.gmetrics.analyzer
Holds information related to the configuration and context for the source code analysis.
analyze(MetricSet) - Method in AntFileSetSourceAnalyzer
Analyze all source code using the specified MetricSet and return the results node.
analyze(MetricSet) - Method in SourceAnalyzer
Analyze all source code using the specified set of Metrics and return the results.
AntFileSetSourceAnalyzer - Class in org.gmetrics.ant
SourceAnalyzer implementation that gets source files from one or more Ant FileSets.
AntFileSetSourceAnalyzer(Project, List) - Constructor in AntFileSetSourceAnalyzer
Construct a new instance on the specified List of Ant FileSets.
applyMetric(Metric) - Method in PackageResultsNode
applyToClass(ClassNode, SourceCode) - Method in AbstractMetric
applyToClass(ClassNode, SourceCode) - Method in Metric
applyToClosure(ClosureExpression, SourceCode) - Method in AbstractCoberturaCoverageMetric
applyToClosure(ClosureExpression, SourceCode) - Method in AbstractMethodMetric
applyToClosure(ClosureExpression, SourceCode) - Method in MethodMetric
applyToMethod(MethodNode, SourceCode) - Method in AbstractCoberturaCoverageMetric
applyToMethod(MethodNode, SourceCode) - Method in AbstractMethodMetric
applyToMethod(MethodNode, SourceCode) - Method in MethodMetric
applyToPackage(String, String, Collection<MetricResult>) - Method in AbstractMetric
applyToPackage(String, String, Collection<MetricResult>) - Method in Metric
AstUtil - Class in org.gmetrics.util
Contains static utility methods related to Groovy AST.
AstVisitor - Interface in org.gmetrics.metric
Interface for Groovy AST Visitors
asType(Class) - Method in Ratio
AVERAGE - Field in FunctionNames

B

BASE_MESSAGES_BUNDLE - Field in AbstractReportWriter
BasicHtmlReportWriter - Class in org.gmetrics.report
ReportWriter that generates a basic HTML report.
buildSeriesData(ResultsNode, MetricSet) - Method in SingleSeriesCriteriaFilter

C

calculate(ClosureExpression, SourceCode) - Method in AbcMetric
calculate(MethodNode, SourceCode) - Method in AbstractCoberturaCoverageMetric
calculate(ClosureExpression, SourceCode) - Method in AbstractMethodMetric
calculate(MethodNode, SourceCode) - Method in CrapMetric
calculate(ClosureExpression, SourceCode) - Method in CyclomaticComplexityMetric
calculate(ClosureExpression, SourceCode) - Method in MethodLineCountMetric
calculateAverage(BigDecimal, int, int) - Method in Calculator
calculateCrapScore(BigDecimal, BigDecimal) - Method in CrapMetric
Calculate the CRAP metric score
calculateForClass(ClassNode, SourceCode) - Method in AbstractCoberturaCoverageMetric
calculateForClass(ClassNode, SourceCode) - Method in AbstractMethodMetric
calculateForClass(ClassNode, SourceCode) - Method in AbstractMetric
calculateForClass(ClassNode, SourceCode) - Method in AbstractPackageCouplingMetric
calculateForClass(ClassNode, SourceCode) - Method in ClassCountMetric
calculateForClass(ClassNode, SourceCode) - Method in ClassLineCountMetric
calculateForClass(ClassNode, SourceCode) - Method in FieldCountMetric
calculateForClass(ClassNode, SourceCode) - Method in MethodCountMetric
calculateForPackage(String, String, Collection<MetricResult>) - Method in AbstractCoberturaCoverageMetric
calculateForPackage(String, String, Collection<MetricResult>) - Method in AbstractMetric
calculateForPackage(String, String, Collection<MetricResult>) - Method in AfferentCouplingMetric
calculateForPackage(String, String, Collection<MetricResult>) - Method in ClassCountMetric
calculateForPackage(String, String, Collection<MetricResult>) - Method in EfferentCouplingMetric
calculateFunctions(Collection) - Method in AggregateAbcMetricResult
calculateMethodResult(MethodNode, GPathResult) - Method in AbstractCoberturaCoverageMetric
Calculator - Class in org.gmetrics.util
Contains static utility methods related to mathematical calculations
ClassCountMetric - Class in org.gmetrics.metric.classcount
Metric for counting the number of classes within each package.
ClassLineCountAstVisitor - Class in org.gmetrics.metric.linecount
ClassLineCountMetric - Class in org.gmetrics.metric.linecount
Metric for counting the lines of code for classes and interfaces.
ClassMetricResult - Class in org.gmetrics.result
Represents the results for a single metric for a single class
ClassMetricResult(MetricResult, Map<MethodKey, MetricResult>) - Constructor in ClassMetricResult
ClassNameUtil - Class in org.gmetrics.util
Static utility methods for dealing with class and package names
ClassPathResource - Class in org.gmetrics.util.io
A Resource implementation for resources available on the classpath.
ClassPathResource(String) - Constructor in ClassPathResource
Construct a new ClassPathResource
path:
- the path to the resource (file).
ClassResultsNode - Class in org.gmetrics.resultsnode
Represents a node in the hierarchy of metric result nodes
ClassResultsNode(String, String, String) - Constructor in ClassResultsNode
CoberturaBranchCoverageMetric - Class in org.gmetrics.metric.coverage
Metric for test code coverage by branch (branch-rate) from a Cobertura XML file.
CoberturaCoverageFile - Class in org.gmetrics.metric.coverage
Parses and provides access to a Cobertura "coverage.xml"
CoberturaCoverageFile(String, String) - Constructor in CoberturaCoverageFile
CoberturaLineCoverageMetric - Class in org.gmetrics.metric.coverage
Metric for test code coverage by line (line-rate) from a Cobertura XML file.
CoberturaSignatureParser - Class in org.gmetrics.metric.coverage
Provides utility methods to parse and compare Cobertura method signatures
CompositeMetricSet - Class in org.gmetrics.metricset
A MetricSet implementation that aggregates a set of MetricSets and Metrics.
containsClassResults() - Method in ClassResultsNode
containsClassResults() - Method in MethodResultsNode
containsClassResults() - Method in PackageResultsNode
containsClassResults() - Method in ResultsNode
CrapMetric - Class in org.gmetrics.metric.crap
Metric to calculate the CRAP metric
createAggregateMetricResult(MetricLevel, Collection, ASTNode) - Method in AbcMetric
createAggregateMetricResult(MetricLevel, Collection<MetricResult>, ASTNode) - Method in AbstractMetric
createAggregateMetricResult(Collection<MetricResult>, Integer, Map<String, Object>) - Method in MetricResultBuilder
Calculate the aggregate metric results for the specified child metric results.
createEmptyMetricResult() - Method in AbstractCouplingReferenceManager
createEmptyMetricResult() - Method in AfferentCouplingReferenceManager
createEmptyMetricResult() - Method in EfferentCouplingReferenceManager
createGMetricsRunner - Field in GMetricsTask
createSourceUnit() - Method in AbstractSourceCode
createSourceUnit() - Method in SourceFile
createSourceUnit() - Method in SourceString
CUSTOM_MESSAGES_BUNDLE - Field in AbstractReportWriter
customMessagesBundleName - Field in AbstractReportWriter
CyclomaticComplexityAstVisitor - Class in org.gmetrics.metric.cyclomatic
AST Visitor for calculating the Cyclomatic Complexity for a method or closure field.
CyclomaticComplexityMetric - Class in org.gmetrics.metric.cyclomatic
Metric for counting the (McCabe) Cyclomatic Complexity for methods and closure fields.

D

DEFAULT_CSS_FILE - Field in SingleSeriesHtmlReportWriter
DEFAULT_OUTPUT_FILE - Field in BasicHtmlReportWriter
DEFAULT_OUTPUT_FILE - Field in SingleSeriesHtmlReportWriter
DEFAULT_OUTPUT_FILE - Field in XmlReportWriter
DEFAULT_TITLE - Field in SingleSeriesHtmlReportWriter
DefaultMetricRegistry - Class in org.gmetrics.metricregistry
Default implementation of MetricRegistry
DefaultMetricSet - Class in org.gmetrics.metricset
A MetricSet implementation that returns the default static List of Metrics.
DefaultResourceFactory - Class in org.gmetrics.util.io
Default implementation of ResourceFactory.
description(String) - Method in TopLevelDelegate

E

EfferentCouplingMetric - Class in org.gmetrics.metric.coupling
Metric for counting the number of other packages that the classes in the package depend upon.
EfferentCouplingReferenceManager - Class in org.gmetrics.metric.coupling
Maintains a mapping of packageName -> packages it references, as well as a reference to a MetricResult for the associated PackageResultsNode.
EfferentCouplingReferenceManager(Metric) - Constructor in EfferentCouplingReferenceManager
equals(Object) - Method in MethodKey
execute() - Method in GMetricsRunner
execute() - Method in GMetricsTask
Execute this Ant Task

F

FieldCountAstVisitor - Class in org.gmetrics.metric.fieldcount
AstVisitor for the FieldCountMetric.
FieldCountMetric - Class in org.gmetrics.metric.fieldcount
Metric for counting the number of methods within classes and interfaces.
fileSets - Field in AntFileSetSourceAnalyzer
fileSets - Field in GMetricsTask
findClassElement(String) - Method in CoberturaCoverageFile
findInnerClasses(String) - Method in CoberturaCoverageFile
findMethodElement(MethodNode, GPathResult) - Method in AbstractCoberturaCoverageMetric
findMethodElement(String, int, String, GPathResult) - Method in CoberturaCoverageFile
findOrAddResultsNodeForPath(String, String) - Method in AntFileSetSourceAnalyzer
findPackageElement(String) - Method in CoberturaCoverageFile
findResultsNodeForPath(String) - Method in AntFileSetSourceAnalyzer
format(Object) - Method in Formatter
format(Object) - Method in PercentageFormatter
format(Object) - Method in ToStringFormatter
formatMetricResultValue(String, Object) - Method in AbstractReportWriter
Formatter - Interface in org.gmetrics.formatter
Interface for objects that can format Object into a String
FormatterFactory - Class in org.gmetrics.formatter
Factory for Formatter objects
formatterFactory - Field in AbstractReportWriter
formatters - Field in AbstractReportWriter
FunctionNames - Class in org.gmetrics.result
Contains constants for function names
FunctionsCriteriaFilter - Class in org.gmetrics.report
Provides data and behavior for enabling reports to filter the set of functions included in a report.

G

getAbcVector() - Method in AggregateAbcMetricResult
getAllMetricNames() - Method in DefaultMetricRegistry
getAllMetricNames() - Method in MetricRegistry
getAnnotation(AnnotatedNode, String) - Method in AstUtil
Return the AnnotationNode for the named annotation, or else null.
getAst() - Method in AbstractSourceCode
Return the Groovy AST (Abstract Syntax Tree) for this source file
getAst() - Method in SourceCode
Return the Groovy AST (Abstract Syntax Tree) for this source file
getAt(String) - Method in AbcMetricResult
getAt(String) - Method in AggregateAbcMetricResult
getAt(String) - Method in MapMetricResult
getAt(String) - Method in MetricResult
Return the metric result value for the named function (e.g.
getAt(String) - Method in MutableMapMetricResult
getAt(String) - Method in NumberMetricResult
getAt(String) - Method in SingleNumberMetricResult
getAttributeName() - Method in AbstractCoberturaCoverageMetric
Returns:
the name of the desired coverage attribute within the Cobertura XML file (e.g.
getAverageAbcVector() - Method in AggregateAbcMetricResult
Return the average of this set of ABC vectors.
getBaseLevel() - Method in Metric
getChildren() - Method in MethodResultsNode
getChildren() - Method in PackageResultsNode
getChildren() - Method in ResultsNode
getCoberturaXml() - Method in CoberturaCoverageFile
getCount() - Method in AggregateAbcMetricResult
getCount() - Method in MetricResult
Return the count of the nodes/results that are descendants.
getCoverageRatioForClass(String) - Method in AbstractCoberturaCoverageMetric
getCoverageRatioForSingleClass(def) - Method in AbstractCoberturaCoverageMetric
@return the calculated coverage ratio for the Cobertura XML class element
getCoverageRatioForSingleClass(def) - Method in CoberturaBranchCoverageMetric
getCoverageRatioForSingleClass(def) - Method in CoberturaLineCoverageMetric
getDescriptionForMetric(Metric) - Method in XmlReportWriter
getDescriptionForMetricName(String) - Method in BasicHtmlReportWriter
getFormattedTimestamp() - Method in AbstractReportWriter
getFormatter(String) - Method in FormatterFactory
Create and return a Formatter instance based on a specification String, which is the class name.
getFunctions() - Method in Metric
getInputStream() - Method in ClassPathResource
Open an InputStream on the classpath resource path
getInputStream() - Method in Resource
Return the InputStream for this resource.
getInputStream() - Method in UrlResource
Open a FileInputStream on the file
getLevel() - Method in ResultsNode
getLineNumber() - Method in MetricResult
Return the line number associated with this metric result (i.e., method or class)
getLineNumberForCharacterIndex(int) - Method in AbstractSourceCode
Return the line index for the line containing the character at the specified index within the source code.
getLineNumberForCharacterIndex(int) - Method in SourceCode
Return the line index for the line containing the character at the specified index within the source code.
getLines() - Method in AbstractSourceCode
@return the List of lines of the source code (with line terminators removed)
getLines() - Method in SourceCode
@return the List of lines of the source code (with line terminators removed)
getMagnitude() - Method in AbcVector
Return the magnitude of this ABC vector, specifically: |ABC| = sqrt((A*A)+(B*B)+(C*C))
getMethodArguments(MethodCallExpression) - Method in AstUtil
Return the List of Arguments for the specified MethodCallExpression.
getMetric() - Method in MetricResult
@return the Metric for which this object represents results.
getMetricClass(String) - Method in DefaultMetricRegistry
getMetricClass(String) - Method in MetricRegistry
getMetricLevel() - Method in MetricResult
@return the MetricLevel for this metric result
getMetricResult(String) - Method in AfferentCouplingMetric
getMetricResult(Metric) - Method in ClassResultsNode
getMetricResult(String) - Method in EfferentCouplingMetric
getMetricResult(Metric) - Method in MethodResultsNode
getMetricResult(Metric) - Method in PackageResultsNode
getMetricResult(Metric) - Method in ResultsNode
getMetricResults() - Method in ResultsNode
getMetrics() - Method in CompositeMetricSet
Returns:
a List of Metric objects.
getMetrics() - Method in DefaultMetricSet
getMetrics() - Method in GroovyDslMetricSet
@return a List of Metric objects
getMetrics() - Method in ListMetricSet
@return a List of Metric objects
getMetrics() - Method in MetricSet
getMetricSet() - Method in MetricSetBuilder
getMetricSet() - Method in TopLevelDelegate
getName() - Method in Metric
getName(String) - Method in PathUtil
getName() - Method in ResultsNode
getName() - Method in SourceCode
Get the logical name for this source code.
getName() - Method in SourceFile
@return the filename for this source file, excluding path
getNames() - Method in MetricLevel
getNumberOfFields() - Method in FieldCountAstVisitor
getNumberOfMethods() - Method in MethodCountAstVisitor
getOverallCoverageRate() - Method in CoberturaCoverageFile
getPackageMetricResult(String) - Method in AbstractCouplingReferenceManager
getParent(String) - Method in PathUtil
getPath() - Method in SourceCode
Get the logical path for this source code.
getPath() - Method in SourceFile
@return the normalized path for this source file, including filename
getReferencesFromPackage(String) - Method in AbstractCouplingReferenceManager
getResource(String) - Method in DefaultResourceFactory
Return a Resource instance suitable for the specified path.
getResource(String) - Method in ResourceFactory
Return a Resource instance suitable for the specified path.
getResourceBundleString(String, String) - Method in AbstractReportWriter
getResourceBundleStringOrNull(String) - Method in AbstractReportWriter
getSourceDirectories() - Method in AntFileSetSourceAnalyzer
getSourceDirectories() - Method in SourceAnalyzer
Return the List of source directories to be analyzed.
getSourceUnit() - Method in AbstractAstVisitor
getText() - Method in SourceCode
@return the full text of the source code
getText() - Method in SourceFile
@return the full text of the source code
getText() - Method in SourceString
@return the full text of the source code
getTimestamp - Field in AbstractReportWriter
getTotalAbcVector() - Method in AggregateAbcMetricResult
Return the sum of this set of ABC vectors.
getVariableExpressions(DeclarationExpression) - Method in AstUtil
Return the List of VariableExpression objects referenced by the specified DeclarationExpression.
getVersion() - Method in GMetricsVersion
GMETRICS_URL - Field in AbstractReportWriter
GMetricsRunner - Class in org.gmetrics
Helper class to run GMetrics.
GMetricsTask - Class in org.gmetrics.ant
Ant Task for GMetrics.
GMetricsVersion - Class in org.gmetrics.util
Utility class to return the current GMetrics version number.
GroovyDslMetricSet - Class in org.gmetrics.metricset
A MetricSet implementation that parses a Groovy DSL of Metric definitions.
GroovyDslMetricSet(String) - Constructor in GroovyDslMetricSet
Construct a new instance on the specified Groovy DSL MetricSet file path

H

hashCode() - Method in MethodKey
hasInnerClasses(String) - Method in CoberturaCoverageFile

I

ImportUtil - Class in org.gmetrics.util
Contains static utility methods and constants related to Import statements.
includesFunction(Metric, String) - Method in FunctionsCriteriaFilter
includesLevel(Metric, MetricLevel) - Method in LevelsCriteriaFilter
includesMetric(Metric) - Method in MetricsCriteriaFilter
includesName(Map, Metric, String) - Method in MetricCriteriaFilterHelper
initializeDefaultResourceBundle() - Method in AbstractReportWriter
initializeFormatters(MetricSet) - Method in AbstractReportWriter
initializeResourceBundle - Field in AbstractReportWriter
isBlock(Statement) - Method in AstUtil
Return true if the Statement is a block
isClassName(String) - Method in ClassNameUtil
isClosureField(FieldNode) - Method in AstUtil
Return true only if the specified FieldNode has an initial expression that is a Closure
isEmptyBlock(Statement) - Method in AstUtil
Return true if the Statement is a block and it is empty (contains no "meaningful" statements).
isEmptyMethod(MethodNode) - Method in AstUtil
isEnabled() - Method in Metric
isFinalVariable(DeclarationExpression, SourceCode) - Method in AstUtil
Return true if the DeclarationExpression represents a 'final' variable declaration.
isFirstVisit(def) - Method in AbstractAstVisitor
Return true if the AST expression has not already been visited.
isFromGeneratedSourceCode(ASTNode) - Method in AstUtil
@return true if the ASTNode was generated (synthetic) rather than from the "real" input source code.
isMethodCall(MethodCallExpression, String, String) - Method in AstUtil
Return true only if the MethodCallExpression represents a method call for the specified method object (receiver) and method name.
isMethodNamed(MethodCallExpression, String) - Method in AstUtil
Return true only if the MethodCallExpression represents a method call for the specified method name
isNotAnInterface(ClassNode) - Method in AbstractMetric
isPackageName(String) - Method in ClassNameUtil
isSourcePackageOrAncestor(String) - Method in AbstractCouplingReferenceManager
isSyntheticNonRunMethod(MethodNode) - Method in AbstractAstVisitor
isValid() - Method in AbstractSourceCode
Return true if and only if the source code can be successfully compiled
isValid() - Method in SourceCode
Return true if and only if the source code can be successfully compiled

J

K

L

LevelsCriteriaFilter - Class in org.gmetrics.report
Provides data and behavior for enabling reports to filter the set of metrics included in a report.
line(int) - Method in AbstractSourceCode
Get the trimmed line at the specified index
line(int) - Method in SourceCode
Get the trimmed line at the specified index
ListMetricSet - Class in org.gmetrics.metricset
A MetricSet implementation that returns a static List of Metrics passed into its constructor.
ListMetricSet(List) - Constructor in ListMetricSet
Construct a new instance from the specified List of metrics.
LOG - Field in AbstractCoberturaCoverageMetric
LOG - Field in AbstractReportWriter

M

MapMetricResult - Class in org.gmetrics.result
A MetricResult for arbitrary values, backed by a Map.
MapMetricResult(Metric, MetricLevel, Map<String, Object>, int) - Constructor in MapMetricResult
Construct a new instance
matches(SourceCode) - Method in SourceCodeCriteria
Return true if all of the criteria specified in this object apply to thw SourceCode.
matches(String) - Method in WildcardPattern
Return true if the specified String matches the pattern or if the original patternString (specified in the constructor) was null or empty and the value for defaultMatches (also specified in the constructor) was true.
matchesCoberturaMethod(String, String, String, String) - Method in CoberturaSignatureParser
MAX_SOURCE_LINE_LENGTH - Field in AbstractAstVisitor
MAXIMUM - Field in FunctionNames
MethodCountAstVisitor - Class in org.gmetrics.metric.methodcount
AstVisitor for the MethodCountMetric.
MethodCountMetric - Class in org.gmetrics.metric.methodcount
Metric for counting the number of methods within classes and interfaces.
MethodKey - Class in org.gmetrics.result
Serves as a key in the Map of method --> MetricResult.
MethodKey(MethodNode) - Constructor in MethodKey
MethodLineCountAstVisitor - Class in org.gmetrics.metric.linecount
AST Visitor for calculating the lines of code for a method or closure field.
MethodLineCountMetric - Class in org.gmetrics.metric.linecount
Metric for counting the lines of code for methods and closure fields.
MethodMetric - Interface in org.gmetrics.metric
Represents a method-level metric
methodMissing(String, def) - Method in MetricSetDelegate
methodMissing(String, def) - Method in TopLevelDelegate
MethodResultsNode - Class in org.gmetrics.resultsnode
Represents a method result node in the hierarchy of metric result nodes
MethodResultsNode(String, String) - Constructor in MethodResultsNode
Metric - Interface in org.gmetrics.metric
Represents a metric
METRIC_CLASSES - Field in DefaultMetricRegistry
metric(Class, Closure) - Method in TopLevelDelegate
MetricCriteriaFilterHelper - Class in org.gmetrics.report
Provides common static helper methods for classes that provides data and behavior for enabling reports to filter the results included within a report based a filter map keyed on the metric name.
MetricLevel - Enum in org.gmetrics.metric
Enum representing the level at which a metric is applied - either method, class or package
MetricRegistry - Interface in org.gmetrics.metricregistry
Represents a registry of metric classes, accessible by metric name
MetricRegistryHolder - Class in org.gmetrics.metricregistry
Holds a reference to the MetricRegistry static singleton
MetricResult - Interface in org.gmetrics.result
Represents the result from applying a single metric (to a package, class or method)
MetricResultBuilder - Class in org.gmetrics.result
A Builder for MetricResult objects.
metricResultMap - Field in AbstractCouplingReferenceManager
MetricsCriteriaFilter - Class in org.gmetrics.report
Provides data and behavior for enabling reports to filter the set of metrics included in a report.
MetricSet - Interface in org.gmetrics.metricset
Represents a set of (configured) Metric objects
metricset(Closure) - Method in MetricSetBuilder
metricset(String, Closure) - Method in TopLevelDelegate
MetricSetBuilder - Class in org.gmetrics.metricset
A Builder for MetricSets.
MetricSetDelegate - Class in org.gmetrics.metricset
MetricSetDelegate(MetricSet) - Constructor in MetricSetDelegate
MINIMUM - Field in FunctionNames
MutableMapMetricResult - Class in org.gmetrics.result
A MetricResult for arbitrary values, backed by a mutable Map.
MutableMapMetricResult(Metric, MetricLevel, Map<String, Object>) - Constructor in MutableMapMetricResult
Construct a new instance

N

normalize(String) - Method in PathUtil
normalizePackageName(String) - Method in AbstractCouplingReferenceManager
normalizePath(String) - Method in AbstractSourceCode
Return the normalized value of the specified path.
NumberMetricResult - Class in org.gmetrics.result
A MetricResult for numbers (integers, BigDecimals, etc.), that has separate values for total, average, minimum and maximum.
NumberMetricResult(Metric, MetricLevel, Map<String, Object>, Integer, int) - Constructor in NumberMetricResult
Construct a new instance
numberOfParameters(String) - Method in CoberturaSignatureParser

O

P

packageNameForImport(ImportNode) - Method in ImportUtil
Return the package name for the specified import statement or else an empty String
PackageReferenceAstVisitor - Class in org.gmetrics.metric.coupling
AstVisitor that checks for references to other packages
PackageReferenceAstVisitor(String) - Constructor in PackageReferenceAstVisitor
PackageResultsNode - Class in org.gmetrics.resultsnode
Represents a package node in the hierarchy of metric result nodes
PackageResultsNode(String, String, String) - Constructor in PackageResultsNode
parentPackageName(String) - Method in AbstractCouplingReferenceManager
parentPackageName(String) - Method in ClassNameUtil
parse(String) - Method in MetricLevel
parseCoberturaSignatureParameterTypes(String) - Method in CoberturaSignatureParser
parseCommaSeparatedList(String) - Method in MetricLevel
parseCoverageRate(GPathResult) - Method in CoberturaCoverageFile
parseCriteria(String) - Method in MetricCriteriaFilterHelper
Parse the criteria string
parseCriteriaForSingleMetric(Map, String) - Method in MetricCriteriaFilterHelper
PathUtil - Class in org.gmetrics.util
Contains static utility methods related to file and directory paths.
PercentageFormatter - Class in org.gmetrics.formatter
Formatter that formats a number as a percentage, and appends a '%'
plus(Ratio) - Method in Ratio
PostProcessingMetric - Interface in org.gmetrics.metric
Interface for metrics that need to perform processing after all source files have been processed (analyzed).
propertyMissing(String) - Method in TopLevelDelegate
PropertyUtil - Class in org.gmetrics.util
Contains property-related static utility methods
putAt(String, Object) - Method in MutableMapMetricResult

Q

R

Ratio - Class in org.gmetrics.metric.coverage
Represents a simple ratio of X / Y
Ratio(int, int) - Constructor in Ratio
REFERENCED_FROM_PACKAGES - Field in AfferentCouplingReferenceManager
REFERENCED_PACKAGES - Field in AbstractPackageCouplingMetric
REFERENCED_PACKAGES - Field in EfferentCouplingReferenceManager
referencesFromPackage - Field in AbstractCouplingReferenceManager
Report - Class in org.gmetrics.ant
JavaBean class holding the properties for a element with the GMetrics Ant Task.
ReportOption - Class in org.gmetrics.ant
JavaBean class holding the properties for a
ReportWriter - Interface in org.gmetrics.report
Common interface for report writer implementations
reportWriters - Field in GMetricsTask
Resource - Interface in org.gmetrics.util.io
Defines the interface for objects that represent a resource (e.g. a file) and provide access to its InputStream.
resourceBundle - Field in AbstractReportWriter
ResourceFactory - Interface in org.gmetrics.util.io
Defines the interface for factory objects that create/return Resource instances.
ResultsNode - Interface in org.gmetrics.resultsnode
Represents the interface for a single node in the hierarchical network of results nodes
ROOT - Field in AbstractCouplingReferenceManager
rootResultsNode - Field in AntFileSetSourceAnalyzer
ROUNDING_MODE - Field in AbstractCoberturaCoverageMetric

S

SCALE - Field in AbstractCoberturaCoverageMetric
SeriesValue - Class in org.gmetrics.report
Holder for a single data item within a series
SeriesValue(String, Object) - Constructor in SeriesValue
setFunctions(String) - Method in FunctionsCriteriaFilter
setLevels(String) - Method in LevelsCriteriaFilter
setMetrics(String) - Method in MetricsCriteriaFilter
setPath(String) - Method in SourceString
setPropertyFromString(Object, String, String) - Method in PropertyUtil
Set the value of the named property on the specified Object from a String value.
setReportLevels(String) - Method in BasicHtmlReportWriter
setSourceCode(SourceCode) - Method in AstVisitor
Set the SourceCode associated with this visitor
SingleNumberMetricResult - Class in org.gmetrics.result
A MetricResult for numbers (integers, BigDecimals, etc.), that returns the same, single value for total, average, minimum and maximum.
SingleNumberMetricResult(Metric, MetricLevel, def, Integer) - Constructor in SingleNumberMetricResult
Construct a new instance
SingleSeriesCriteriaFilter - Class in org.gmetrics.report
Provides data and behavior for enabling reports to filter the results based on a single metric, single level and single function to provide a single series of data.
SingleSeriesHtmlReportWriter - Class in org.gmetrics.report
ReportWriter that generates a HTML report for a single series of metric values.
sortPackagesWithReferencesWithParentFirst() - Method in AbstractCouplingReferenceManager
SOURCE_LINE_LAST_SEGMENT_LENGTH - Field in AbstractAstVisitor
SourceAnalyzer - Interface in org.gmetrics.analyzer
The interface for objects that can analyze the source files within one or more directory trees using a specified MetricSet and produce report results.
SourceCode - Interface in org.gmetrics.source
Represents a unit of source code to be analyzed
SourceCodeCriteria - Class in org.gmetrics.source
Represents the set of criteria used to filter source code (files).
SourceFile - Class in org.gmetrics.source
The SourceCode implementation for a single file.
SourceFile(File) - Constructor in SourceFile
Construct a new instance for the file at the specified path
sourceLine(ASTNode) - Method in AbstractAstVisitor
Return the source line corresponding to the specified AST node
SourceString - Class in org.gmetrics.source
SourceCode implementation that uses source from a pre-defined String.
SourceString(String, String, String) - Constructor in SourceString
Construct a new instance for the file at the specified path

T

toBigDecimal(int, int) - Method in Ratio
toPackageName(String) - Method in PathUtil
TopLevelDelegate - Class in org.gmetrics.metricset
toString() - Method in AbcMetricResult
toString() - Method in AbcVector
toString() - Method in AggregateAbcMetricResult
toString() - Method in ClassMetricResult
toString() - Method in ClassResultsNode
toString() - Method in MapMetricResult
toString() - Method in MethodKey
toString() - Method in MethodResultsNode
toString() - Method in MetricLevel
toString() - Method in MetricResultBuilder
toString() - Method in MutableMapMetricResult
toString() - Method in NumberMetricResult
toString() - Method in PackageResultsNode
toString() - Method in Ratio
toString() - Method in SeriesValue
toString() - Method in SingleNumberMetricResult
toString() - Method in SourceFile
toString() - Method in SourceString
ToStringFormatter - Class in org.gmetrics.formatter
Formatter that just performs a toString() on the value
TOTAL - Field in FunctionNames

U

updateStatisticsForAllPackages() - Method in AfferentCouplingReferenceManager
updateStatisticsForAllPackages() - Method in EfferentCouplingReferenceManager
updateStatisticsForAncestorPackage(String, int, int) - Method in AbstractCouplingReferenceManager
UrlResource - Class in org.gmetrics.util.io
A Resource implementation based on java.net.URL.
UrlResource(String) - Constructor in UrlResource
Construct a new FileResource
path:
- the filesystem path to the file.

V

VALUE - Field in FunctionNames
visitBinaryExpression(BinaryExpression) - Method in AbcAstVisitor
visitBinaryExpression(BinaryExpression) - Method in CyclomaticComplexityAstVisitor
visitBooleanExpression(BooleanExpression) - Method in AbcAstVisitor
visitCastExpression(CastExpression) - Method in PackageReferenceAstVisitor
visitCatchStatement(CatchStatement) - Method in CyclomaticComplexityAstVisitor
visitClass(ClassNode) - Method in ClassLineCountAstVisitor
visitClass(ClassNode) - Method in FieldCountAstVisitor
visitClass(ClassNode) - Method in MethodCountAstVisitor
visitClass(ClassNode) - Method in PackageReferenceAstVisitor
visitClassExpression(ClassExpression) - Method in PackageReferenceAstVisitor
visitClosureExpression(ClosureExpression) - Method in MethodLineCountAstVisitor
visitClosureExpression(ClosureExpression) - Method in PackageReferenceAstVisitor
visitConstructorCallExpression(ConstructorCallExpression) - Method in AbcAstVisitor
visitConstructorCallExpression(ConstructorCallExpression) - Method in PackageReferenceAstVisitor
visitConstructorOrMethod(MethodNode, boolean) - Method in PackageReferenceAstVisitor
visitField(FieldNode) - Method in PackageReferenceAstVisitor
visitForLoop(ForStatement) - Method in CyclomaticComplexityAstVisitor
visitIfElse(IfStatement) - Method in AbcAstVisitor
visitIfElse(IfStatement) - Method in CyclomaticComplexityAstVisitor
visitImports(ModuleNode) - Method in PackageReferenceAstVisitor
visitMethod(MethodNode) - Method in AbcAstVisitor
visitMethod(MethodNode) - Method in CyclomaticComplexityAstVisitor
visitMethod(MethodNode) - Method in MethodLineCountAstVisitor
visitMethodCallExpression(MethodCallExpression) - Method in AbcAstVisitor
visitMethodCallExpression(MethodCallExpression) - Method in CyclomaticComplexityAstVisitor
visitNotExpression(NotExpression) - Method in AbcAstVisitor
visitPostfixExpression(PostfixExpression) - Method in AbcAstVisitor
visitPrefixExpression(PrefixExpression) - Method in AbcAstVisitor
visitPropertyExpression(PropertyExpression) - Method in AbcAstVisitor
visitPropertyExpression(PropertyExpression) - Method in CyclomaticComplexityAstVisitor
visitPropertyExpression(PropertyExpression) - Method in PackageReferenceAstVisitor
visitSwitch(SwitchStatement) - Method in AbcAstVisitor
visitSwitch(SwitchStatement) - Method in CyclomaticComplexityAstVisitor
visitTernaryExpression(TernaryExpression) - Method in AbcAstVisitor
visitTernaryExpression(TernaryExpression) - Method in CyclomaticComplexityAstVisitor
visitTryCatchFinally(TryCatchStatement) - Method in AbcAstVisitor
visitVariableExpression(VariableExpression) - Method in PackageReferenceAstVisitor
visitWhileLoop(WhileStatement) - Method in CyclomaticComplexityAstVisitor

W

WildcardPattern - Class in org.gmetrics.util
Represents a string pattern that may optionally include wildcards ('*', '**' or '?')
WildcardPattern(String, boolean) - Constructor in WildcardPattern
Construct a new WildcardPattern instance on a single pattern or a comma-separated list of patterns.
writeReport(ResultsNode, AnalysisContext) - Method in AbstractReportWriter
writeReport(Writer, ResultsNode, AnalysisContext) - Method in BasicHtmlReportWriter
writeReport(ResultsNode, AnalysisContext) - Method in ReportWriter
writeReport(Writer, ResultsNode, AnalysisContext) - Method in SingleSeriesHtmlReportWriter
writeReport(Writer, ResultsNode, AnalysisContext) - Method in XmlReportWriter

X

XmlReportWriter - Class in org.gmetrics.report
ReportWriter that generates an XML report.

Y

Z

ZERO - Field in Ratio

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _