org.codenarc.analyzer
Class StringSourceAnalyzer

java.lang.Object
  extended by org.codenarc.analyzer.BaseSourceAnalyzer
      extended by org.codenarc.analyzer.StringSourceAnalyzer
All Implemented Interfaces:
groovy.lang.GroovyObject, SourceAnalyzer

public class StringSourceAnalyzer
extends BaseSourceAnalyzer


Constructor Summary
StringSourceAnalyzer(String source)
           
 
Method Summary
 Results analyze(RuleSet ruleSet)
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String property)
           
 SourceString getSource()
           
 List getSourceDirectories()
           
 Object invokeMethod(String method, Object arguments)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 void setSource(SourceString value)
           
 
Methods inherited from class org.codenarc.analyzer.BaseSourceAnalyzer
collectViolations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringSourceAnalyzer

public StringSourceAnalyzer(String source)
Method Detail

getMetaClass

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

setMetaClass

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

invokeMethod

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

getProperty

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

setProperty

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

getSource

public SourceString getSource()

setSource

public void setSource(SourceString value)

analyze

public Results analyze(RuleSet ruleSet)

getSourceDirectories

public List getSourceDirectories()


Copyright © 2013. All Rights Reserved.