Groovy Documentation

org.codenarc.ant
[Groovy] Class AntFileSetSourceAnalyzer

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

class AntFileSetSourceAnalyzer

SourceAnalyzer implementation that gets source files from one or more Ant FileSets.

Authors:
Chris Mair
Version:
\$Revision: 609 \$ - \$Date: 2011-02-24 13:48:43 -0500 (Thu, 24 Feb 2011) \$


Field Summary
protected List fileSets

 
Constructor Summary
AntFileSetSourceAnalyzer(org.apache.tools.ant.Project project, org.apache.tools.ant.types.FileSet fileSet)

Construct a new instance on the specified Ant FileSet.

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

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

 
Method Summary
Results analyze(RuleSet ruleSet)

Analyze all source code using the specified RuleSet and return the report results.

List getSourceDirectories()

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

Field Detail

fileSets

protected List fileSets


 
Constructor Detail

AntFileSetSourceAnalyzer

AntFileSetSourceAnalyzer(org.apache.tools.ant.Project project, org.apache.tools.ant.types.FileSet fileSet)
Construct a new instance on the specified Ant FileSet.
Parameters:
project - - the Ant Project; must not be null
fileSet - - the Ant FileSet; must not be null


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

Results analyze(RuleSet ruleSet)
Analyze all source code using the specified RuleSet and return the report results.
Parameters:
ruleset - - the RuleSet to apply to each source component; must not be null.
Returns:
the results from applying the RuleSet to all of the source


getSourceDirectories

List getSourceDirectories()


 

Groovy Documentation