Package com.github.javaparser
Enum ParserConfiguration.LanguageLevel
java.lang.Object
java.lang.Enum<ParserConfiguration.LanguageLevel>
com.github.javaparser.ParserConfiguration.LanguageLevel
- All Implemented Interfaces:
Serializable
,Comparable<ParserConfiguration.LanguageLevel>
,java.lang.constant.Constable
- Enclosing class:
- ParserConfiguration
public static enum ParserConfiguration.LanguageLevel
extends Enum<ParserConfiguration.LanguageLevel>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJava 1.0Java 1.1Java 1.2Java 1.3Java 1.4Java 10Java 10 -- including incubator/preview/second preview features.Java 11Java 11 -- including incubator/preview/second preview features.Java 12Java 12 -- including incubator/preview/second preview features.Java 13Java 13 -- including incubator/preview/second preview features.Java 14Java 14 -- including incubator/preview/second preview features.Java 15Java 15 -- including incubator/preview/second preview features.Java 16Java 16 -- including incubator/preview/second preview features.Java 16Java 16 -- including incubator/preview/second preview features.Java 5Java 6Java 7Java 8Java 9 -
Field Summary
FieldsModifier and TypeFieldDescriptionThe newest Java features supported.The latest Java version that is available.The most used Java version.Does no post processing or validation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the enum constant of this type with the specified name.static ParserConfiguration.LanguageLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
JAVA_1_0
Java 1.0 -
JAVA_1_1
Java 1.1 -
JAVA_1_2
Java 1.2 -
JAVA_1_3
Java 1.3 -
JAVA_1_4
Java 1.4 -
JAVA_5
Java 5 -
JAVA_6
Java 6 -
JAVA_7
Java 7 -
JAVA_8
Java 8 -
JAVA_9
Java 9 -
JAVA_10
Java 10 -
JAVA_10_PREVIEW
Java 10 -- including incubator/preview/second preview features. Note that preview features, unless otherwise specified, follow the grammar and behaviour of the latest released JEP for that feature. -
JAVA_11
Java 11 -
JAVA_11_PREVIEW
Java 11 -- including incubator/preview/second preview features. Note that preview features, unless otherwise specified, follow the grammar and behaviour of the latest released JEP for that feature. -
JAVA_12
Java 12 -
JAVA_12_PREVIEW
Java 12 -- including incubator/preview/second preview features. Note that preview features, unless otherwise specified, follow the grammar and behaviour of the latest released JEP for that feature.- Switch expressions are permitted, with a single label only and no yield.
-
JAVA_13
Java 13 -
JAVA_13_PREVIEW
Java 13 -- including incubator/preview/second preview features. Note that preview features, unless otherwise specified, follow the grammar and behaviour of the latest released JEP for that feature.- Switch expressions are permitted, with a single label only.
-
JAVA_14
Java 14 -
JAVA_14_PREVIEW
Java 14 -- including incubator/preview/second preview features. Note that preview features, unless otherwise specified, follow the grammar and behaviour of the latest released JEP for that feature. -
JAVA_15
Java 15 -
JAVA_15_PREVIEW
Java 15 -- including incubator/preview/second preview features. Note that preview features, unless otherwise specified, follow the grammar and behaviour of the latest released JEP for that feature. -
JAVA_16
Java 16 -
JAVA_16_PREVIEW
Java 16 -- including incubator/preview/second preview features. Note that preview features, unless otherwise specified, follow the grammar and behaviour of the latest released JEP for that feature. -
JAVA_17
Java 16 -
JAVA_17_PREVIEW
Java 16 -- including incubator/preview/second preview features. Note that preview features, unless otherwise specified, follow the grammar and behaviour of the latest released JEP for that feature.
-
-
Field Details
-
RAW
Does no post processing or validation. Only for people wanting the fastest parsing. -
POPULAR
The most used Java version. -
CURRENT
The latest Java version that is available. -
BLEEDING_EDGE
The newest Java features supported.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
isYieldSupported
public boolean isYieldSupported()
-