public interface ImportList
Modifier and Type | Method and Description |
---|---|
Collection<String> |
applyNameToStarImports(String startsWith,
String unqualified)
Takes all explicit non-static star imports whose first element is equal to
startsWith , replaces the star with unqualified , and returns these. |
String |
applyUnqualifiedNameToPackage(String unqualified) |
String |
getFullyQualifiedNameForSimpleName(String unqualified)
If there is an explicit import of the stated unqualified type name, return that.
|
boolean |
hasStarImport(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'.
|
String getFullyQualifiedNameForSimpleName(String unqualified)
boolean hasStarImport(String packageName)
Collection<String> applyNameToStarImports(String startsWith, String unqualified)
startsWith
, replaces the star with unqualified
, and returns these.Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.