SourceCode
public class SourceString extends AbstractSourceCode
DEFAULT_COMPILER_PHASE
Constructor | Description |
---|---|
SourceString(String source) |
|
SourceString(String source,
String path) |
|
SourceString(String source,
String path,
String name) |
Modifier and Type | Method | Description |
---|---|---|
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, getAstCompilerPhase, getLineNumberForCharacterIndex, getLines, getLOG, getMethodCallExpressions, getSEPARATOR_PROP, getSuppressionAnalyzer, isValid, line, normalizePath, setSuppressionAnalyzer
public SourceString(String source)
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in class AbstractSourceCode
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in class AbstractSourceCode
public Object invokeMethod(String method, Object arguments)
invokeMethod
in class AbstractSourceCode
public Object getProperty(String property)
getProperty
in class AbstractSourceCode
public void setProperty(String property, Object value)
setProperty
in class AbstractSourceCode
public String getPath()
public String getName()
public void setName(String value)
public String getText()
public void setPath(String path)
Copyright © 2019. All rights reserved.