Package org.codenarc.source
Class CustomCompilerPhaseSourceDecorator
- java.lang.Object
-
- org.codenarc.source.AbstractSourceCode
-
- org.codenarc.source.CustomCompilerPhaseSourceDecorator
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,SourceCode
public class CustomCompilerPhaseSourceDecorator extends AbstractSourceCode implements groovy.lang.GroovyObject
-
-
Field Summary
-
Fields inherited from interface org.codenarc.source.SourceCode
DEFAULT_COMPILER_PHASE
-
-
Constructor Summary
Constructors Constructor Description CustomCompilerPhaseSourceDecorator(SourceCode delegate, int compilerPhase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAstCompilerPhase()groovy.lang.MetaClassgetMetaClass()StringgetName()StringgetPath()ObjectgetProperty(String property)SuppressionAnalyzergetSuppressionAnalyzer()StringgetText()ObjectinvokeMethod(String method, Object arguments)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)StringtoString()-
Methods inherited from class org.codenarc.source.AbstractSourceCode
getAst, getLineNumberForCharacterIndex, getLines, getLOG, getMethodCallExpressions, getSEPARATOR_PROP, isValid, line, normalizePath, setSuppressionAnalyzer
-
-
-
-
Constructor Detail
-
CustomCompilerPhaseSourceDecorator
public CustomCompilerPhaseSourceDecorator(SourceCode delegate, int compilerPhase)
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classAbstractSourceCode
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin classAbstractSourceCode
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractSourceCode
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractSourceCode
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractSourceCode
-
getAstCompilerPhase
public int getAstCompilerPhase()
- Specified by:
getAstCompilerPhasein interfaceSourceCode- Overrides:
getAstCompilerPhasein classAbstractSourceCode
-
getName
public String getName()
- Specified by:
getNamein interfaceSourceCode
-
getPath
public String getPath()
- Specified by:
getPathin interfaceSourceCode
-
getText
public String getText()
- Specified by:
getTextin interfaceSourceCode
-
getSuppressionAnalyzer
public SuppressionAnalyzer getSuppressionAnalyzer()
- Specified by:
getSuppressionAnalyzerin interfaceSourceCode- Overrides:
getSuppressionAnalyzerin classAbstractSourceCode
-
-