org.codenarc.analyzer
Class BaseSourceAnalyzer

java.lang.Object
  extended by org.codenarc.analyzer.BaseSourceAnalyzer
All Implemented Interfaces:
groovy.lang.GroovyObject, SourceAnalyzer
Direct Known Subclasses:
AntFileSetSourceAnalyzer, DirectorySourceAnalyzer, FilesystemSourceAnalyzer, StringSourceAnalyzer

public abstract class BaseSourceAnalyzer
extends Object
implements SourceAnalyzer, groovy.lang.GroovyObject


Constructor Summary
BaseSourceAnalyzer()
           
 
Method Summary
protected  List<Violation> collectViolations(SourceCode sourceCode, RuleSet ruleSet)
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String property)
           
 Object invokeMethod(String method, Object arguments)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codenarc.analyzer.SourceAnalyzer
analyze, getSourceDirectories
 

Constructor Detail

BaseSourceAnalyzer

public BaseSourceAnalyzer()
Method Detail

getMetaClass

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

setMetaClass

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

invokeMethod

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

getProperty

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

setProperty

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

collectViolations

protected List<Violation> collectViolations(SourceCode sourceCode,
                                            RuleSet ruleSet)


Copyright © 2012. All Rights Reserved.