Contains static utility methods and constants related to Import statements.
This is an internal class and its API is subject to change.| Type Params | Return Type | Name and description |
|---|---|---|
|
static List |
getImportsSortedByLineNumber(def sourceCode) |
|
static List |
getNonStaticImportsSortedByLineNumber(def sourceCode) |
|
static String |
packageNameForImport(org.codehaus.groovy.ast.ImportNode importNode)Return the package name for the specified import statement or else an empty String |
|
static Map |
sourceLineAndNumberForImport(SourceCode sourceCode, String className, String alias)Return the source line and line number for the specified import class name and alias |
|
static Map |
sourceLineAndNumberForImport(SourceCode sourceCode, org.codehaus.groovy.ast.ImportNode importNode)Return the source line and line number for the specified import |
|
static Map |
sourceLineAndNumberForNonStarImport(SourceCode sourceCode, org.codehaus.groovy.ast.ImportNode importNode) |
|
static Map |
sourceLineAndNumberForStarImport(SourceCode sourceCode, org.codehaus.groovy.ast.ImportNode importNode)Return the source line and line number for the specified import class name and alias |
Return the package name for the specified import statement or else an empty String
importNode - - the ImportNode for the importReturn the source line and line number for the specified import class name and alias
sourceCode - - the SourceCode being processedimportNode - - the ImportNode representing the importReturn the source line and line number for the specified import
sourceCode - - the SourceCode being processedimportNode - - the ImportNode representing the importReturn the source line and line number for the specified import class name and alias
sourceCode - - the SourceCode being processedimportNode - - the ImportNode representing the import