Package org.codenarc.analyzer
Class DirectorySourceAnalyzer
- java.lang.Object
-
- org.codenarc.analyzer.AbstractSourceAnalyzer
-
- org.codenarc.analyzer.DirectorySourceAnalyzer
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,SourceAnalyzer
public class DirectorySourceAnalyzer extends AbstractSourceAnalyzer implements groovy.lang.GroovyObject
-
-
Constructor Summary
Constructors Constructor Description DirectorySourceAnalyzer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Resultsanalyze(RuleSet ruleSet)StringgetApplyToFileNames()StringgetApplyToFilesMatching()StringgetBaseDirectory()StringgetDoNotApplyToFileNames()StringgetDoNotApplyToFilesMatching()groovy.lang.MetaClassgetMetaClass()ObjectgetProperty(String property)static ObjectgetSEP()ListgetSourceDirectories()ObjectinvokeMethod(String method, Object arguments)voidsetApplyToFileNames(String value)voidsetApplyToFilesMatching(String value)voidsetBaseDirectory(String value)voidsetDoNotApplyToFileNames(String value)voidsetDoNotApplyToFilesMatching(String value)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)voidsetSourceDirectories(List 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 Object getSEP()
-
getBaseDirectory
public String getBaseDirectory()
-
setBaseDirectory
public void setBaseDirectory(String value)
-
getSourceDirectories
public List getSourceDirectories()
- Specified by:
getSourceDirectoriesin interfaceSourceAnalyzer
-
setSourceDirectories
public void setSourceDirectories(List value)
-
getApplyToFilesMatching
public String getApplyToFilesMatching()
-
setApplyToFilesMatching
public void setApplyToFilesMatching(String value)
-
getDoNotApplyToFilesMatching
public String getDoNotApplyToFilesMatching()
-
setDoNotApplyToFilesMatching
public void setDoNotApplyToFilesMatching(String value)
-
getApplyToFileNames
public String getApplyToFileNames()
-
setApplyToFileNames
public void setApplyToFileNames(String value)
-
getDoNotApplyToFileNames
public String getDoNotApplyToFileNames()
-
setDoNotApplyToFileNames
public void setDoNotApplyToFileNames(String value)
-
analyze
public Results analyze(RuleSet ruleSet)
- Specified by:
analyzein interfaceSourceAnalyzer
-
-