Class AbstractSourceCode
java.lang.Object
org.codenarc.source.AbstractSourceCode
- All Implemented Interfaces:
groovy.lang.GroovyObject, SourceCode
- Direct Known Subclasses:
CustomCompilerPhaseSourceDecorator, SourceFile, SourceString
public abstract class AbstractSourceCode
extends Object
implements SourceCode, groovy.lang.GroovyObject
-
Field Summary
Fields inherited from interface SourceCode
DEFAULT_COMPILER_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.codehaus.groovy.ast.ModuleNodegetAst()intintgetLineNumberForCharacterIndex(int charIndex) getLines()static org.slf4j.LoggergetLOG()groovy.lang.MetaClassgetProperty(String property) static StringinvokeMethod(String method, Object arguments) booleanisValid()line(int lineNumber) protected StringnormalizePath(String path) voidsetMetaClass(groovy.lang.MetaClass mc) voidsetProperty(String property, Object value) protected voidsetSuppressionAnalyzer(SuppressionAnalyzer suppressionAnalyzer) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SourceCode
getName, getPath, getText
-
Constructor Details
-
AbstractSourceCode
public AbstractSourceCode()
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject
-
invokeMethod
-
getProperty
-
setProperty
-
getLOG
public static org.slf4j.Logger getLOG() -
getSEPARATOR_PROP
-
getSuppressionAnalyzer
- Specified by:
getSuppressionAnalyzerin interfaceSourceCode
-
setSuppressionAnalyzer
-
getLines
- Specified by:
getLinesin interfaceSourceCode
-
line
- Specified by:
linein interfaceSourceCode
-
getAst
public org.codehaus.groovy.ast.ModuleNode getAst()- Specified by:
getAstin interfaceSourceCode
-
getAstCompilerPhase
public int getAstCompilerPhase()- Specified by:
getAstCompilerPhasein interfaceSourceCode
-
getMethodCallExpressions
public Map<org.codehaus.groovy.ast.ClassNode, List<org.codehaus.groovy.ast.expr.MethodCallExpression>> getMethodCallExpressions()- Specified by:
getMethodCallExpressionsin interfaceSourceCode
-
getLineNumberForCharacterIndex
public int getLineNumberForCharacterIndex(int charIndex) - Specified by:
getLineNumberForCharacterIndexin interfaceSourceCode
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceSourceCode
-
normalizePath
-