public static enum SourceLevelQuery.Profile extends Enum<SourceLevelQuery.Profile>
Enum.EnumDesc<E extends Enum<E>>
Enum Constant and Description |
---|
COMPACT1
The compact1 profile.
|
COMPACT2
The compact2 profile.
|
COMPACT3
The compact3 profile.
|
DEFAULT
The default full JRE profile.
|
Modifier and Type | Method and Description |
---|---|
static SourceLevelQuery.Profile |
forName(String profileName)
Returns the
SourceLevelQuery.Profile for given profile name. |
String |
getDisplayName()
Returns the display name of the profile.
|
String |
getName()
Returns the name of the profile.
|
boolean |
isSupportedIn(String sourceLevel)
Tests if the profile is supported in gives source level.
|
static SourceLevelQuery.Profile |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SourceLevelQuery.Profile[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SourceLevelQuery.Profile COMPACT1
public static final SourceLevelQuery.Profile COMPACT2
public static final SourceLevelQuery.Profile COMPACT3
public static final SourceLevelQuery.Profile DEFAULT
public static SourceLevelQuery.Profile[] values()
public static SourceLevelQuery.Profile valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@NonNull public String getName()
@NonNull public String getDisplayName()
public boolean isSupportedIn(@NonNull String sourceLevel)
sourceLevel
- to test if the profile is supported in it@CheckForNull public static SourceLevelQuery.Profile forName(@NullAllowed String profileName)
SourceLevelQuery.Profile
for given profile name.profileName
- the name of the profileSourceLevelQuery.Profile
for given profile name or null
for unknown profile name.