public class SourceCodeUtil extends Object implements groovy.lang.GroovyObject
| Constructor and Description |
|---|
SourceCodeUtil() |
| Modifier and Type | Method and Description |
|---|---|
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
static List<String> |
nodeSourceLines(SourceCode source,
org.codehaus.groovy.ast.ASTNode node) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
static List<String> |
sourceLinesBetween(SourceCode source,
int startLine,
int startColumn,
int endLine,
int endColumn) |
static List<String> |
sourceLinesBetweenNodes(SourceCode source,
org.codehaus.groovy.ast.ASTNode startNode,
org.codehaus.groovy.ast.ASTNode endNode) |
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectpublic static List<String> nodeSourceLines(SourceCode source, org.codehaus.groovy.ast.ASTNode node)
public static List<String> sourceLinesBetweenNodes(SourceCode source, org.codehaus.groovy.ast.ASTNode startNode, org.codehaus.groovy.ast.ASTNode endNode)
public static List<String> sourceLinesBetween(SourceCode source, int startLine, int startColumn, int endLine, int endColumn)
Copyright © 2021. All rights reserved.