Enum Class ModuleImportOrderOption
java.lang.Object
java.lang.Enum<ModuleImportOrderOption>
com.puppycrawl.tools.checkstyle.checks.imports.ModuleImportOrderOption
- All Implemented Interfaces:
Serializable,Comparable<ModuleImportOrderOption>,Constable
Represents the policy for the position of module import declarations
relative to type and static imports.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleImportOrderOptionReturns the enum constant of this class with the specified name.static ModuleImportOrderOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOP
Represents the policy that module imports are all at the top. For example:import module java.desktop; import module java.sql; import java.awt.Button; import static java.io.File.createTempFile;
-
BOTTOM
Represents the policy that module imports are all at the bottom. For example:import java.awt.Button; import static java.io.File.createTempFile; import module java.desktop; import module java.sql;
-
-
Constructor Details
-
ModuleImportOrderOption
private ModuleImportOrderOption()
-
-
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
-