org.gmetrics.ant
Class AntFileSetSourceAnalyzer
java.lang.Object
org.gmetrics.ant.AntFileSetSourceAnalyzer
- All Implemented Interfaces:
- groovy.lang.GroovyObject, SourceAnalyzer
public class AntFileSetSourceAnalyzer
- extends java.lang.Object
- implements groovy.lang.GroovyObject, SourceAnalyzer
SourceAnalyzer implementation that gets source files from one or more Ant FileSets.
This class is not reentrant.
- Version:
- $Revision: 101 $ - $Date: 2010-03-10 19:17:23 -0500 (Wed, 10 Mar 2010) $
- Author:
- Chris Mair
|
Constructor Summary |
AntFileSetSourceAnalyzer(org.apache.tools.ant.Project project,
java.util.List fileSets)
Construct a new instance on the specified List of Ant FileSets. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileSets
protected java.util.List fileSets
rootResultsNode
protected ResultsNode rootResultsNode
AntFileSetSourceAnalyzer
public AntFileSetSourceAnalyzer(org.apache.tools.ant.Project project,
java.util.List fileSets)
- Construct a new instance on the specified List of Ant FileSets.
- Parameters:
project - - the Ant ProjectfileSets - - the List of Ant FileSet; my be empty; must not be null
analyze
public ResultsNode analyze(MetricSet metricSet)
- Analyze all source code using the specified MetricSet and return the results node.
- Specified by:
analyze in interface SourceAnalyzer
- 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
getSourceDirectories
public java.util.List getSourceDirectories()
- Description copied from interface:
SourceAnalyzer
- Return the List of source directories to be analyzed. May be empty; may not be null.
- Specified by:
getSourceDirectories in interface SourceAnalyzer
findResultsNodeForPath
protected ResultsNode findResultsNodeForPath(java.lang.String path)
findOrAddResultsNodeForPath
protected ResultsNode findOrAddResultsNodeForPath(java.lang.String path)
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass in interface groovy.lang.GroovyObject
setMetaClass
public void setMetaClass(groovy.lang.MetaClass metaClass)
- Specified by:
setMetaClass in interface groovy.lang.GroovyObject
invokeMethod
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
- Specified by:
invokeMethod in interface groovy.lang.GroovyObject
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getProperty in interface groovy.lang.GroovyObject
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
- Specified by:
setProperty in interface groovy.lang.GroovyObject
Copyright © 2010. All Rights Reserved.