Enum Class ImportRewriteConfiguration.ImplicitImportIdentification
java.lang.Object
java.lang.Enum<ImportRewriteConfiguration.ImplicitImportIdentification>
org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.imports.ImportRewriteConfiguration.ImplicitImportIdentification
- All Implemented Interfaces:
Serializable
,Comparable<ImportRewriteConfiguration.ImplicitImportIdentification>
,java.lang.constant.Constable
- Enclosing class:
ImportRewriteConfiguration
public static enum ImportRewriteConfiguration.ImplicitImportIdentification
extends Enum<ImportRewriteConfiguration.ImplicitImportIdentification>
Specifies which types are considered to be implicitly imported.
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.*.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSpecifies that types from the following packages are considered to be implicitly imported: java.lang the package of the compilation unit being rewrittenSpecifies that no types are considered to be implicitly imported. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JAVA_LANG_AND_CU_PACKAGE
public static final ImportRewriteConfiguration.ImplicitImportIdentification JAVA_LANG_AND_CU_PACKAGESpecifies 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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-