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.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectpublic String getName()
getName in interface org.gmetrics.source.SourceCodepublic String getPath()
getPath in interface org.gmetrics.source.SourceCodepublic String getText()
getText in interface org.gmetrics.source.SourceCodepublic List getLines()
getLines in interface org.gmetrics.source.SourceCodepublic String line(int lineNumber)
line in interface org.gmetrics.source.SourceCodepublic org.codehaus.groovy.ast.ModuleNode getAst()
getAst in interface org.gmetrics.source.SourceCodepublic int getLineNumberForCharacterIndex(int charIndex)
getLineNumberForCharacterIndex in interface org.gmetrics.source.SourceCodepublic boolean isValid()
isValid in interface org.gmetrics.source.SourceCodeCopyright © 2021. All rights reserved.