public class EclipseImportList extends java.lang.Object implements ImportList
| Constructor and Description |
|---|
EclipseImportList(CompilationUnitDeclaration 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)
ImportListgetFullyQualifiedNameForSimpleName in interface ImportListpublic boolean hasStarImport(java.lang.String packageName)
ImportListhasStarImport in interface ImportListpublic java.util.Collection<java.lang.String> applyNameToStarImports(java.lang.String startsWith,
java.lang.String name)
ImportListstartsWith, replaces the star with unqualified, and returns these.applyNameToStarImports in interface ImportListpublic java.lang.String applyUnqualifiedNameToPackage(java.lang.String unqualified)
applyUnqualifiedNameToPackage in interface ImportListCopyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.