Groovy Documentation

org.gmetrics.ant
[Groovy] Class AntFileSetSourceAnalyzer

java.lang.Object
  org.gmetrics.ant.AntFileSetSourceAnalyzer
All Implemented Interfaces:
SourceAnalyzer

class AntFileSetSourceAnalyzer

SourceAnalyzer implementation that gets source files from one or more Ant FileSets. This class is not reentrant.

Authors:
Chris Mair
Version:
\$Revision: 107 \$ - \$Date: 2010-06-05 07:23:27 -0400 (Sat, 05 Jun 2010) \$


Field Summary
protected List fileSets

protected ResultsNode rootResultsNode

 
Constructor Summary
AntFileSetSourceAnalyzer(org.apache.tools.ant.Project project, List fileSets)

Construct a new instance on the specified List of Ant FileSets.

 
Method Summary
ResultsNode analyze(MetricSet metricSet)

Analyze all source code using the specified MetricSet and return the results node.

protected ResultsNode findOrAddResultsNodeForPath(String path)

protected ResultsNode findResultsNodeForPath(String path)

List getSourceDirectories()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

fileSets

protected List fileSets


rootResultsNode

protected ResultsNode rootResultsNode


 
Constructor Detail

AntFileSetSourceAnalyzer

AntFileSetSourceAnalyzer(org.apache.tools.ant.Project project, List fileSets)
Construct a new instance on the specified List of Ant FileSets.
Parameters:
project - - the Ant Project
fileSets - - the List of Ant FileSet; my be empty; must not be null


 
Method Detail

analyze

ResultsNode analyze(MetricSet metricSet)
Analyze all source code using the specified MetricSet and return the results node.
Parameters:
metricSet - - the MetricSet to apply to each source component; must not be null.
Returns:
the root ResultsNode resulting from applying the MetricSet to all of the source


findOrAddResultsNodeForPath

protected ResultsNode findOrAddResultsNodeForPath(String path)


findResultsNodeForPath

protected ResultsNode findResultsNodeForPath(String path)


getSourceDirectories

List getSourceDirectories()


 

Groovy Documentation