public static enum ImportRewriteConfiguration.ImplicitImportIdentification extends java.lang.Enum<ImportRewriteConfiguration.ImplicitImportIdentification>
An import declaration of such a type will not be added to the compilation unit unless it is
needed to resolve a conflict with an on-demand imports, or the type's simple name has been
specified with ImportRewriteAnalyzer.requireExplicitImport(boolean, java.lang.String).
Also, implicitly imported types will be considered for conflicts when deciding which types from other packages can be reduced into on-demand imports. E.g. if java.lang.Integer were considered to be implicitly imported, that would prevent an import of com.example.Integer from being reduced into an on-demand import of com.example.*.
| Enum Constant and Description |
|---|
JAVA_LANG_AND_CU_PACKAGE
Specifies that types from the following packages are considered to be implicitly
imported:
java.lang
the package of the compilation unit being rewritten
|
NONE
Specifies that no types are considered to be implicitly imported.
|
| Modifier and Type | Method and Description |
|---|---|
static ImportRewriteConfiguration.ImplicitImportIdentification |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImportRewriteConfiguration.ImplicitImportIdentification[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImportRewriteConfiguration.ImplicitImportIdentification JAVA_LANG_AND_CU_PACKAGE
public static final ImportRewriteConfiguration.ImplicitImportIdentification NONE
public static ImportRewriteConfiguration.ImplicitImportIdentification[] values()
for (ImportRewriteConfiguration.ImplicitImportIdentification c : ImportRewriteConfiguration.ImplicitImportIdentification.values()) System.out.println(c);
public static ImportRewriteConfiguration.ImplicitImportIdentification valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null