org.gmetrics.analyzer
Class FilesystemSourceAnalyzer
java.lang.Object
org.gmetrics.analyzer.FilesystemSourceAnalyzer
- All Implemented Interfaces:
- groovy.lang.GroovyObject, SourceAnalyzer
public class FilesystemSourceAnalyzer
- extends java.lang.Object
- implements groovy.lang.GroovyObject, SourceAnalyzer
SourceAnalyzer implementation that recursively processes files from the file system.
- Version:
- $Revision: 101 $ - $Date: 2010-03-10 19:17:23 -0500 (Wed, 10 Mar 2010) $
- Author:
- Chris Mair
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileFactory
protected java.lang.Object fileFactory
sourceCodeFactory
protected java.lang.Object sourceCodeFactory
FilesystemSourceAnalyzer
public FilesystemSourceAnalyzer()
getSEP
public static final java.lang.Object getSEP()
getDEFAULT_INCLUDES
public static final java.lang.Object getDEFAULT_INCLUDES()
getBaseDirectory
public java.lang.String getBaseDirectory()
setBaseDirectory
public void setBaseDirectory(java.lang.String value)
getIncludes
public java.lang.String getIncludes()
setIncludes
public void setIncludes(java.lang.String value)
getExcludes
public java.lang.String getExcludes()
setExcludes
public void setExcludes(java.lang.String value)
analyze
public ResultsNode analyze(MetricSet metricSet)
- Analyze the source with the configured directory tree(s) using the specified metrics and return the results.
- Specified by:
analyze in interface SourceAnalyzer
- Parameters:
metricSet - - the MetricSet to apply to each of the (applicable) files in the source directories
- Returns:
- the results from applying the metrics to all of the files in the source directories
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
matches
protected boolean matches(SourceCode sourceCode)
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.