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, normalizePathpublic SourceFile(File file)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectgetMetaClass in class AbstractSourceCodepublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectsetMetaClass in class AbstractSourceCodepublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class AbstractSourceCodepublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class AbstractSourceCodepublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class AbstractSourceCodepublic String getName()
getName in interface SourceCodepublic String getPath()
getPath in interface SourceCodepublic String getText()
getText in interface SourceCodeprotected Object createSourceUnit()
createSourceUnit in class AbstractSourceCodeCopyright © 2015. All rights reserved.