public enum SourceLevel extends Enum<SourceLevel>
Enum Constant and Description |
---|
JAVA8 |
Modifier and Type | Field and Description |
---|---|
static SourceLevel |
DEFAULT_SOURCE_LEVEL
The default java sourceLevel.
|
Modifier and Type | Method and Description |
---|---|
static SourceLevel |
fromString(String sourceLevelString)
Returns the SourceLevel given the string or alternate string representation; returns
null if none is found. |
String |
getAltStringValue()
Returns an alternate string value representation for the source level.
|
static SourceLevel |
getBestMatchingVersion(String javaVersionString) |
String |
getStringValue()
Returns a string value representation for the source level.
|
String |
toString() |
static SourceLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SourceLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, createValueOfMap, equals, getDeclaringClass, hashCode, name, ordinal, valueOf, valueOf
$isInstance
public static final SourceLevel JAVA8
public static final SourceLevel DEFAULT_SOURCE_LEVEL
public static SourceLevel[] values()
for (SourceLevel c : SourceLevel.values()) System.out.println(c);
public static SourceLevel 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 nullpublic String getStringValue()
public String getAltStringValue()
public String toString()
toString
in class Enum<SourceLevel>
public static SourceLevel fromString(String sourceLevelString)
null
if none is found.public static SourceLevel getBestMatchingVersion(String javaVersionString)
Copyright © 2018. All rights reserved.