public class ImportUtil extends Object implements groovy.lang.GroovyObject
| Constructor and Description |
|---|
ImportUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List |
getImportsSortedByLineNumber(Object sourceCode) |
groovy.lang.MetaClass |
getMetaClass() |
static List |
getNonStaticImportsSortedByLineNumber(Object sourceCode) |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
static String |
packageNameForImport(org.codehaus.groovy.ast.ImportNode importNode) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
static Map |
sourceLineAndNumberForImport(SourceCode sourceCode,
org.codehaus.groovy.ast.ImportNode importNode) |
static Map |
sourceLineAndNumberForImport(SourceCode sourceCode,
String className,
String alias) |
static Map |
sourceLineAndNumberForNonStarImport(SourceCode sourceCode,
org.codehaus.groovy.ast.ImportNode importNode) |
static Map |
sourceLineAndNumberForStarImport(SourceCode sourceCode,
org.codehaus.groovy.ast.ImportNode importNode) |
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 String packageNameForImport(org.codehaus.groovy.ast.ImportNode importNode)
public static Map sourceLineAndNumberForImport(SourceCode sourceCode, String className, String alias)
public static Map sourceLineAndNumberForStarImport(SourceCode sourceCode, org.codehaus.groovy.ast.ImportNode importNode)
public static Map sourceLineAndNumberForNonStarImport(SourceCode sourceCode, org.codehaus.groovy.ast.ImportNode importNode)
public static Map sourceLineAndNumberForImport(SourceCode sourceCode, org.codehaus.groovy.ast.ImportNode importNode)
Copyright © 2021. All rights reserved.