SourceCodepublic 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, setSuppressionAnalyzerpublic SourceString(String source)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in class AbstractSourceCodepublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in class AbstractSourceCodepublic Object invokeMethod(String method, Object arguments)
invokeMethod in class AbstractSourceCodepublic Object getProperty(String property)
getProperty in class AbstractSourceCodepublic void setProperty(String property, Object value)
setProperty in class AbstractSourceCodepublic String getPath()
public String getName()
public void setName(String value)
public String getText()
public void setPath(String path)
Copyright © 2019. All rights reserved.