Package org.codenarc.rule.size
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.ModuleNode
getAst()
int
getLineNumberForCharacterIndex
(int charIndex) getLines()
groovy.lang.MetaClass
getName()
getPath()
getProperty
(String property) getText()
invokeMethod
(String method, Object arguments) boolean
isValid()
line
(int lineNumber) void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value)
-
Constructor Details
-
GMetricsSourceCodeAdapter
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
getName
- Specified by:
getName
in interfaceorg.gmetrics.source.SourceCode
-
getPath
- Specified by:
getPath
in interfaceorg.gmetrics.source.SourceCode
-
getText
- Specified by:
getText
in interfaceorg.gmetrics.source.SourceCode
-
getLines
- Specified by:
getLines
in interfaceorg.gmetrics.source.SourceCode
-
line
- Specified by:
line
in interfaceorg.gmetrics.source.SourceCode
-
getAst
public org.codehaus.groovy.ast.ModuleNode getAst()- Specified by:
getAst
in interfaceorg.gmetrics.source.SourceCode
-
getLineNumberForCharacterIndex
public int getLineNumberForCharacterIndex(int charIndex) - Specified by:
getLineNumberForCharacterIndex
in interfaceorg.gmetrics.source.SourceCode
-
isValid
public boolean isValid()- Specified by:
isValid
in interfaceorg.gmetrics.source.SourceCode
-