public abstract class AbstractSourceCode extends java.lang.Object implements SourceCode, groovy.lang.GroovyObject
| Constructor and Description |
|---|
AbstractSourceCode() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Object |
createSourceUnit() |
org.codehaus.groovy.ast.ModuleNode |
getAst() |
static java.lang.Object |
getFILE_SEPARATOR() |
int |
getLineNumberForCharacterIndex(int charIndex) |
java.util.List |
getLines() |
static java.lang.Object |
getLOG() |
groovy.lang.MetaClass |
getMetaClass() |
java.lang.Object |
getProperty(java.lang.String property) |
java.lang.Object |
invokeMethod(java.lang.String method,
java.lang.Object arguments) |
boolean |
isValid() |
java.lang.String |
line(int lineNumber) |
protected java.lang.String |
normalizePath(java.lang.String path) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(java.lang.String property,
java.lang.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 java.lang.Object invokeMethod(java.lang.String method,
java.lang.Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic java.lang.Object getProperty(java.lang.String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(java.lang.String property,
java.lang.Object value)
setProperty in interface groovy.lang.GroovyObjectpublic static java.lang.Object getLOG()
public static java.lang.Object getFILE_SEPARATOR()
protected abstract java.lang.Object createSourceUnit()
public java.util.List getLines()
getLines in interface SourceCodepublic java.lang.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 SourceCodeprotected java.lang.String normalizePath(java.lang.String path)