public class SourceString extends AbstractSourceCode implements groovy.lang.GroovyObject
| Constructor and Description |
|---|
SourceString(String source) |
SourceString(String source,
String path) |
SourceString(String source,
String path,
String name) |
| 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 |
setName(String value) |
void |
setPath(String path) |
void |
setProperty(String property,
Object value) |
String |
toString() |
getAst, getFILE_SEPARATOR, getLineNumberForCharacterIndex, getLines, getLOG, isValid, line, normalizePathpublic SourceString(String source)
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 getPath()
getPath in interface SourceCodepublic String getName()
getName in interface SourceCodepublic void setName(String value)
public String getText()
getText in interface SourceCodepublic void setPath(String path)
protected Object createSourceUnit()
createSourceUnit in class AbstractSourceCodeCopyright © 2015. All rights reserved.