public abstract class AbstractSourceCode extends Object implements SourceCode, groovy.lang.GroovyObject
| Constructor and Description |
|---|
AbstractSourceCode() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
createSourceUnit() |
org.codehaus.groovy.ast.ModuleNode |
getAst() |
static Object |
getFILE_SEPARATOR() |
int |
getLineNumberForCharacterIndex(int charIndex) |
List |
getLines() |
static Object |
getLOG() |
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
boolean |
isValid() |
String |
line(int lineNumber) |
protected String |
normalizePath(String path) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getPath, getTextpublic 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 static Object getLOG()
public static Object getFILE_SEPARATOR()
protected abstract Object createSourceUnit()
public List getLines()
getLines in interface SourceCodepublic String line(int lineNumber)
line in interface SourceCodepublic org.codehaus.groovy.ast.ModuleNode getAst()
getAst in interface SourceCodepublic int getLineNumberForCharacterIndex(int charIndex)
getLineNumberForCharacterIndex in interface SourceCodepublic boolean isValid()
isValid in interface SourceCodeCopyright © 2015. All rights reserved.