public class SourceFile extends AbstractSourceCode implements groovy.lang.GroovyObject
Constructor and Description |
---|
SourceFile(File file) |
Modifier and Type | Method and Description |
---|---|
protected Object |
createSourceUnit() |
groovy.lang.MetaClass |
getMetaClass() |
String |
getName() |
String |
getPath() |
Object |
getProperty(String property) |
String |
getText() |
Object |
invokeMethod(String method,
Object arguments) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
String |
toString() |
getAst, getFILE_SEPARATOR, getLineNumberForCharacterIndex, getLines, getLOG, isValid, line, normalizePath
public SourceFile(File file)
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
getMetaClass
in class AbstractSourceCode
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
setMetaClass
in class AbstractSourceCode
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
invokeMethod
in class AbstractSourceCode
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
getProperty
in class AbstractSourceCode
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
setProperty
in class AbstractSourceCode
public String getName()
getName
in interface SourceCode
public String getPath()
getPath
in interface SourceCode
public String getText()
getText
in interface SourceCode
protected Object createSourceUnit()
createSourceUnit
in class AbstractSourceCode
Copyright © 2015. All rights reserved.