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.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
public 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 © 2022. All rights reserved.