public class GMetricsSourceCodeAdapter extends Object implements org.gmetrics.source.SourceCode, groovy.lang.GroovyObject
Constructor and Description |
---|
GMetricsSourceCodeAdapter(SourceCode sourceCode) |
Modifier and Type | Method and Description |
---|---|
org.codehaus.groovy.ast.ModuleNode |
getAst() |
int |
getLineNumberForCharacterIndex(int charIndex) |
List |
getLines() |
groovy.lang.MetaClass |
getMetaClass() |
String |
getName() |
String |
getPath() |
Object |
getProperty(String property) |
String |
getText() |
Object |
invokeMethod(String method,
Object arguments) |
boolean |
isValid() |
String |
line(int lineNumber) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
public GMetricsSourceCodeAdapter(SourceCode sourceCode)
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
public String getName()
getName
in interface org.gmetrics.source.SourceCode
public String getPath()
getPath
in interface org.gmetrics.source.SourceCode
public String getText()
getText
in interface org.gmetrics.source.SourceCode
public List getLines()
getLines
in interface org.gmetrics.source.SourceCode
public String line(int lineNumber)
line
in interface org.gmetrics.source.SourceCode
public org.codehaus.groovy.ast.ModuleNode getAst()
getAst
in interface org.gmetrics.source.SourceCode
public int getLineNumberForCharacterIndex(int charIndex)
getLineNumberForCharacterIndex
in interface org.gmetrics.source.SourceCode
public boolean isValid()
isValid
in interface org.gmetrics.source.SourceCode
Copyright © 2022. All rights reserved.