Package org.codenarc.analyzer
Class FilesystemSourceAnalyzer
- java.lang.Object
-
- org.codenarc.analyzer.AbstractSourceAnalyzer
-
- org.codenarc.analyzer.FilesystemSourceAnalyzer
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,SourceAnalyzer
public class FilesystemSourceAnalyzer extends AbstractSourceAnalyzer implements groovy.lang.GroovyObject
-
-
Constructor Summary
Constructors Constructor Description FilesystemSourceAnalyzer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Resultsanalyze(RuleSet ruleSet)StringgetBaseDirectory()static StringgetDEFAULT_INCLUDES()StringgetExcludes()StringgetIncludes()groovy.lang.MetaClassgetMetaClass()ObjectgetProperty(String property)static StringgetSEP()ListgetSourceDirectories()protected voidinitializeWildcardPatterns()ObjectinvokeMethod(String method, Object arguments)protected booleanmatches(SourceCode sourceFile)voidsetBaseDirectory(String value)voidsetExcludes(String value)voidsetIncludes(String value)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)-
Methods inherited from class org.codenarc.analyzer.AbstractSourceAnalyzer
collectViolations
-
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classAbstractSourceAnalyzer
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin classAbstractSourceAnalyzer
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractSourceAnalyzer
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractSourceAnalyzer
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractSourceAnalyzer
-
getSEP
public static String getSEP()
-
getDEFAULT_INCLUDES
public static String 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:
analyzein interfaceSourceAnalyzer
-
getSourceDirectories
public List getSourceDirectories()
- Specified by:
getSourceDirectoriesin interfaceSourceAnalyzer
-
matches
protected boolean matches(SourceCode sourceFile)
-
initializeWildcardPatterns
protected void initializeWildcardPatterns()
-
-