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 Results
analyze(RuleSet ruleSet)
String
getBaseDirectory()
static String
getDEFAULT_INCLUDES()
String
getExcludes()
String
getIncludes()
groovy.lang.MetaClass
getMetaClass()
Object
getProperty(String property)
static String
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.AbstractSourceAnalyzer
collectViolations
-
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classAbstractSourceAnalyzer
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classAbstractSourceAnalyzer
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractSourceAnalyzer
-
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractSourceAnalyzer
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in 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:
analyze
in interfaceSourceAnalyzer
-
getSourceDirectories
public List getSourceDirectories()
- Specified by:
getSourceDirectories
in interfaceSourceAnalyzer
-
matches
protected boolean matches(SourceCode sourceFile)
-
initializeWildcardPatterns
protected void initializeWildcardPatterns()
-
-