public class JavacImportList extends java.lang.Object implements ImportList
Constructor and Description |
---|
JavacImportList(JCCompilationUnit cud) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
applyNameToStarImports(java.lang.String startsWith,
java.lang.String name)
Takes all explicit non-static star imports whose first element is equal to
startsWith , replaces the star with unqualified , and returns these. |
java.lang.String |
applyUnqualifiedNameToPackage(java.lang.String unqualified) |
java.lang.String |
getFullyQualifiedNameForSimpleName(java.lang.String unqualified)
If there is an explicit import of the stated unqualified type name, return that.
|
boolean |
hasStarImport(java.lang.String packageName)
Returns true if the package name is explicitly star-imported, OR the packageName refers to this source file's own package name, OR packageName is 'java.lang'.
|
public java.lang.String getFullyQualifiedNameForSimpleName(java.lang.String unqualified)
ImportList
getFullyQualifiedNameForSimpleName
in interface ImportList
public boolean hasStarImport(java.lang.String packageName)
ImportList
hasStarImport
in interface ImportList
public java.util.Collection<java.lang.String> applyNameToStarImports(java.lang.String startsWith, java.lang.String name)
ImportList
startsWith
, replaces the star with unqualified
, and returns these.applyNameToStarImports
in interface ImportList
public java.lang.String applyUnqualifiedNameToPackage(java.lang.String unqualified)
applyUnqualifiedNameToPackage
in interface ImportList
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.