public class SourceString extends AbstractSourceCode
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, normalizePath
public SourceString(String source)
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 getPath()
public String getName()
public void setName(String value)
public String getText()
public void setPath(String path)
protected Object createSourceUnit()
createSourceUnit
in class AbstractSourceCode
Copyright © 2022. All rights reserved.