Package org.codenarc.analyzer
Class StringSourceAnalyzer
- java.lang.Object
-
- org.codenarc.analyzer.AbstractSourceAnalyzer
-
- org.codenarc.analyzer.StringSourceAnalyzer
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,SourceAnalyzer
public class StringSourceAnalyzer extends AbstractSourceAnalyzer implements groovy.lang.GroovyObject
-
-
Constructor Summary
Constructors Constructor Description StringSourceAnalyzer(String source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resultsanalyze(RuleSet ruleSet)groovy.lang.MetaClassgetMetaClass()ObjectgetProperty(String property)SourceStringgetSource()ListgetSourceDirectories()ObjectinvokeMethod(String method, Object arguments)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)voidsetSource(SourceString value)-
Methods inherited from class org.codenarc.analyzer.AbstractSourceAnalyzer
collectViolations
-
-
-
-
Constructor Detail
-
StringSourceAnalyzer
public StringSourceAnalyzer(String source)
-
-
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
-
getSource
public SourceString getSource()
-
setSource
public void setSource(SourceString value)
-
analyze
public Results analyze(RuleSet ruleSet)
- Specified by:
analyzein interfaceSourceAnalyzer
-
getSourceDirectories
public List getSourceDirectories()
- Specified by:
getSourceDirectoriesin interfaceSourceAnalyzer
-
-