public enum LanguageLevel extends java.lang.Enum<LanguageLevel>
LanguageLevel
class is a compiler-side counterpart of this enum.Enum Constant and Description |
---|
JDK_1_3 |
JDK_1_4 |
JDK_1_5 |
JDK_1_6 |
JDK_1_7 |
JDK_1_8 |
JDK_1_9 |
JDK_10 |
JDK_11 |
JDK_12 |
JDK_13 |
JDK_13_PREVIEW |
JDK_14 |
JDK_14_PREVIEW |
JDK_X |
Modifier and Type | Field and Description |
---|---|
static LanguageLevel |
HIGHEST |
static Key<LanguageLevel> |
KEY |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCompilerComplianceDefaultOption()
Deprecated.
|
java.lang.String |
getPresentableText() |
boolean |
isAtLeast(LanguageLevel level) |
boolean |
isLessThan(LanguageLevel level) |
boolean |
isPreview() |
static LanguageLevel |
parse(java.lang.String compilerComplianceOption)
See
JavaVersion.parse(String) for supported formats. |
JavaVersion |
toJavaVersion() |
static LanguageLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LanguageLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LanguageLevel JDK_1_3
public static final LanguageLevel JDK_1_4
public static final LanguageLevel JDK_1_5
public static final LanguageLevel JDK_1_6
public static final LanguageLevel JDK_1_7
public static final LanguageLevel JDK_1_8
public static final LanguageLevel JDK_1_9
public static final LanguageLevel JDK_10
public static final LanguageLevel JDK_11
public static final LanguageLevel JDK_12
public static final LanguageLevel JDK_13
public static final LanguageLevel JDK_13_PREVIEW
public static final LanguageLevel JDK_14
public static final LanguageLevel JDK_14_PREVIEW
public static final LanguageLevel JDK_X
public static final LanguageLevel HIGHEST
public static final Key<LanguageLevel> KEY
public static LanguageLevel[] values()
for (LanguageLevel c : LanguageLevel.values()) System.out.println(c);
public static LanguageLevel 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 boolean isPreview()
public java.lang.String getPresentableText()
public boolean isAtLeast(LanguageLevel level)
public boolean isLessThan(LanguageLevel level)
public JavaVersion toJavaVersion()
@Deprecated public java.lang.String getCompilerComplianceDefaultOption()
JpsJavaSdkType.complianceOption(JavaVersion)
public static LanguageLevel parse(java.lang.String compilerComplianceOption)
JavaVersion.parse(String)
for supported formats.