Class GMetricsSourceCodeAdapter
java.lang.Object
org.codenarc.rule.size.GMetricsSourceCodeAdapter
- All Implemented Interfaces:
groovy.lang.GroovyObject, org.gmetrics.source.SourceCode
public class GMetricsSourceCodeAdapter
extends Object
implements org.gmetrics.source.SourceCode, groovy.lang.GroovyObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.codehaus.groovy.ast.ModuleNodegetAst()intgetLineNumberForCharacterIndex(int charIndex) getLines()groovy.lang.MetaClassgetName()getPath()getProperty(String property) getText()invokeMethod(String method, Object arguments) booleanisValid()line(int lineNumber) voidsetMetaClass(groovy.lang.MetaClass mc) voidsetProperty(String property, Object value)
-
Constructor Details
-
GMetricsSourceCodeAdapter
-
-
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
-
getName
- Specified by:
getNamein interfaceorg.gmetrics.source.SourceCode
-
getPath
- Specified by:
getPathin interfaceorg.gmetrics.source.SourceCode
-
getText
- Specified by:
getTextin interfaceorg.gmetrics.source.SourceCode
-
getLines
- Specified by:
getLinesin interfaceorg.gmetrics.source.SourceCode
-
line
- Specified by:
linein interfaceorg.gmetrics.source.SourceCode
-
getAst
public org.codehaus.groovy.ast.ModuleNode getAst()- Specified by:
getAstin interfaceorg.gmetrics.source.SourceCode
-
getLineNumberForCharacterIndex
public int getLineNumberForCharacterIndex(int charIndex) - Specified by:
getLineNumberForCharacterIndexin interfaceorg.gmetrics.source.SourceCode
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.gmetrics.source.SourceCode
-