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, wait
getName, getPath, getText
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 static Object getLOG()
public static Object getFILE_SEPARATOR()
protected abstract Object createSourceUnit()
public List getLines()
getLines
in interface SourceCode
public String line(int lineNumber)
line
in interface SourceCode
public org.codehaus.groovy.ast.ModuleNode getAst()
getAst
in interface SourceCode
public int getLineNumberForCharacterIndex(int charIndex)
getLineNumberForCharacterIndex
in interface SourceCode
public boolean isValid()
isValid
in interface SourceCode
Copyright © 2015. All rights reserved.