public enum MavenScope extends java.lang.Enum<MavenScope> implements io.micronaut.core.order.Ordered
Enum Constant and Description |
---|
COMPILE |
IMPORT |
PROVIDED |
RUNTIME |
SYSTEM |
TEST |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
static java.util.Optional<MavenScope> |
of(Scope scope) |
java.lang.String |
toString() |
static MavenScope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MavenScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MavenScope COMPILE
public static final MavenScope PROVIDED
public static final MavenScope RUNTIME
public static final MavenScope TEST
public static final MavenScope SYSTEM
public static final MavenScope IMPORT
public static MavenScope[] values()
for (MavenScope c : MavenScope.values()) System.out.println(c);
public static MavenScope 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 nullpublic java.lang.String toString()
toString
in class java.lang.Enum<MavenScope>
public int getOrder()
getOrder
in interface io.micronaut.core.order.Ordered
@NonNull public static java.util.Optional<MavenScope> of(@NonNull Scope scope)