Enum Class DependencyScope
- All Implemented Interfaces:
Serializable
,Comparable<DependencyScope>
,Constable
The scopes of dependencies supported by project generation.
- Author:
- Andy Wilkinson
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA dependency that is used as an annotation processor when compiling a project.A dependency that is used to compile a project.A dependency that is a compile time only dependency and not used at runtime.A dependency that is provided and is used to run the project.A dependency this is used to run a project.A dependency that is used to compile a project's tests.A dependency this is used to run a project's tests. -
Method Summary
Modifier and TypeMethodDescriptionstatic DependencyScope
Returns the enum constant of this class with the specified name.static DependencyScope[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANNOTATION_PROCESSOR
A dependency that is used as an annotation processor when compiling a project. -
COMPILE
A dependency that is used to compile a project. -
COMPILE_ONLY
A dependency that is a compile time only dependency and not used at runtime. -
RUNTIME
A dependency this is used to run a project. -
PROVIDED_RUNTIME
A dependency that is provided and is used to run the project. -
TEST_COMPILE
A dependency that is used to compile a project's tests. -
TEST_RUNTIME
A dependency this is used to run a project's tests.
-
-
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
-