org.codenarc.analyzer
Class FilesystemSourceAnalyzer

java.lang.Object
  extended by org.codenarc.analyzer.BaseSourceAnalyzer
      extended by org.codenarc.analyzer.FilesystemSourceAnalyzer
All Implemented Interfaces:
groovy.lang.GroovyObject, SourceAnalyzer

public class FilesystemSourceAnalyzer
extends BaseSourceAnalyzer
implements groovy.lang.GroovyObject


Constructor Summary
FilesystemSourceAnalyzer()
           
 
Method Summary
 Results analyze(RuleSet ruleSet)
           
 String getBaseDirectory()
           
static Object getDEFAULT_INCLUDES()
           
 String getExcludes()
           
 String getIncludes()
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String property)
           
static Object getSEP()
           
 List getSourceDirectories()
           
protected  void initializeWildcardPatterns()
           
 Object invokeMethod(String method, Object arguments)
           
protected  boolean matches(SourceCode sourceFile)
           
 void setBaseDirectory(String value)
           
 void setExcludes(String value)
           
 void setIncludes(String value)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 
Methods inherited from class org.codenarc.analyzer.BaseSourceAnalyzer
collectViolations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilesystemSourceAnalyzer

public FilesystemSourceAnalyzer()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class BaseSourceAnalyzer

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class BaseSourceAnalyzer

invokeMethod

public Object invokeMethod(String method,
                           Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class BaseSourceAnalyzer

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class BaseSourceAnalyzer

setProperty

public void setProperty(String property,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class BaseSourceAnalyzer

getSEP

public static Object getSEP()

getDEFAULT_INCLUDES

public static Object getDEFAULT_INCLUDES()

getBaseDirectory

public String getBaseDirectory()

setBaseDirectory

public void setBaseDirectory(String value)

getIncludes

public String getIncludes()

setIncludes

public void setIncludes(String value)

getExcludes

public String getExcludes()

setExcludes

public void setExcludes(String value)

analyze

public Results analyze(RuleSet ruleSet)
Specified by:
analyze in interface SourceAnalyzer

getSourceDirectories

public List getSourceDirectories()
Specified by:
getSourceDirectories in interface SourceAnalyzer

matches

protected boolean matches(SourceCode sourceFile)

initializeWildcardPatterns

protected void initializeWildcardPatterns()


Copyright © 2012. All Rights Reserved.