org.codenarc.source
Class CustomCompilerPhaseSourceDecorator

java.lang.Object
  extended by org.codenarc.source.AbstractSourceCode
      extended by org.codenarc.source.CustomCompilerPhaseSourceDecorator
All Implemented Interfaces:
groovy.lang.GroovyObject, SourceCode

public class CustomCompilerPhaseSourceDecorator
extends AbstractSourceCode


Field Summary
 
Fields inherited from interface org.codenarc.source.SourceCode
DEFAULT_COMPILER_PHASE
 
Constructor Summary
CustomCompilerPhaseSourceDecorator(SourceCode delegate, int compilerPhase)
           
 
Method Summary
 int getAstCompilerPhase()
           
 groovy.lang.MetaClass getMetaClass()
           
 String getName()
           
 String getPath()
           
 Object getProperty(String property)
           
 SuppressionAnalyzer getSuppressionAnalyzer()
           
 String getText()
           
 Object invokeMethod(String method, Object arguments)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 String toString()
           
 
Methods inherited from class org.codenarc.source.AbstractSourceCode
getAst, getLineNumberForCharacterIndex, getLines, getLOG, getMethodCallExpressions, getSEPARATOR_PROP, isValid, line, normalizePath, setSuppressionAnalyzer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomCompilerPhaseSourceDecorator

public CustomCompilerPhaseSourceDecorator(SourceCode delegate,
                                          int compilerPhase)
Method Detail

getMetaClass

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

setMetaClass

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

invokeMethod

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

getProperty

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

setProperty

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

getAstCompilerPhase

public int getAstCompilerPhase()
Specified by:
getAstCompilerPhase in interface SourceCode
Overrides:
getAstCompilerPhase in class AbstractSourceCode

getName

public String getName()

getPath

public String getPath()

getText

public String getText()

getSuppressionAnalyzer

public SuppressionAnalyzer getSuppressionAnalyzer()
Specified by:
getSuppressionAnalyzer in interface SourceCode
Overrides:
getSuppressionAnalyzer in class AbstractSourceCode

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All rights reserved.