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>
- Enclosing class:
- ParserConfiguration
public static enum ParserConfiguration.LanguageLevel extends Enum<ParserConfiguration.LanguageLevel>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JAVA_1_0Java 1.0JAVA_1_1Java 1.1JAVA_1_2Java 1.2JAVA_1_3Java 1.3JAVA_1_4Java 1.4JAVA_10Java 10JAVA_10_PREVIEWJava 10 -- including incubator/preview/second preview features.JAVA_11Java 11JAVA_11_PREVIEWJava 11 -- including incubator/preview/second preview features.JAVA_12Java 12JAVA_12_PREVIEWJava 12 -- including incubator/preview/second preview features.JAVA_13Java 13JAVA_13_PREVIEWJava 13 -- including incubator/preview/second preview features.JAVA_14Java 14JAVA_14_PREVIEWJava 14 -- including incubator/preview/second preview features.JAVA_15Java 15JAVA_15_PREVIEWJava 15 -- including incubator/preview/second preview features.JAVA_16Java 16JAVA_16_PREVIEWJava 16 -- including incubator/preview/second preview features.JAVA_17Java 17JAVA_17_PREVIEWJava 17 -- including incubator/preview/second preview features.JAVA_18Java 18JAVA_19Java 19JAVA_20Java 20JAVA_21Java 21JAVA_5Java 5JAVA_6Java 6JAVA_7Java 7JAVA_8Java 8JAVA_9Java 9
-
Field Summary
Fields Modifier and Type Field Description static ParserConfiguration.LanguageLevelBLEEDING_EDGEThe newest Java features supported.static ParserConfiguration.LanguageLevelCURRENTThe latest Java version that is available.static ParserConfiguration.LanguageLevelPOPULARThe most used Java version.static ParserConfiguration.LanguageLevelRAWDoes no post processing or validation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisYieldSupported()static ParserConfiguration.LanguageLevelvalueOf(String name)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 Detail
-
JAVA_1_0
public static final ParserConfiguration.LanguageLevel JAVA_1_0
Java 1.0
-
JAVA_1_1
public static final ParserConfiguration.LanguageLevel JAVA_1_1
Java 1.1
-
JAVA_1_2
public static final ParserConfiguration.LanguageLevel JAVA_1_2
Java 1.2
-
JAVA_1_3
public static final ParserConfiguration.LanguageLevel JAVA_1_3
Java 1.3
-
JAVA_1_4
public static final ParserConfiguration.LanguageLevel JAVA_1_4
Java 1.4
-
JAVA_5
public static final ParserConfiguration.LanguageLevel JAVA_5
Java 5
-
JAVA_6
public static final ParserConfiguration.LanguageLevel JAVA_6
Java 6
-
JAVA_7
public static final ParserConfiguration.LanguageLevel JAVA_7
Java 7
-
JAVA_8
public static final ParserConfiguration.LanguageLevel JAVA_8
Java 8
-
JAVA_9
public static final ParserConfiguration.LanguageLevel JAVA_9
Java 9
-
JAVA_10
public static final ParserConfiguration.LanguageLevel JAVA_10
Java 10
-
JAVA_10_PREVIEW
public static final ParserConfiguration.LanguageLevel 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
public static final ParserConfiguration.LanguageLevel JAVA_11
Java 11
-
JAVA_11_PREVIEW
public static final ParserConfiguration.LanguageLevel 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
public static final ParserConfiguration.LanguageLevel JAVA_12
Java 12
-
JAVA_12_PREVIEW
public static final ParserConfiguration.LanguageLevel 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
public static final ParserConfiguration.LanguageLevel JAVA_13
Java 13
-
JAVA_13_PREVIEW
public static final ParserConfiguration.LanguageLevel 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
public static final ParserConfiguration.LanguageLevel JAVA_14
Java 14
-
JAVA_14_PREVIEW
public static final ParserConfiguration.LanguageLevel 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
public static final ParserConfiguration.LanguageLevel JAVA_15
Java 15
-
JAVA_15_PREVIEW
public static final ParserConfiguration.LanguageLevel 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
public static final ParserConfiguration.LanguageLevel JAVA_16
Java 16
-
JAVA_16_PREVIEW
public static final ParserConfiguration.LanguageLevel 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
public static final ParserConfiguration.LanguageLevel JAVA_17
Java 17
-
JAVA_17_PREVIEW
public static final ParserConfiguration.LanguageLevel JAVA_17_PREVIEW
Java 17 -- 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_18
public static final ParserConfiguration.LanguageLevel JAVA_18
Java 18
-
JAVA_19
public static final ParserConfiguration.LanguageLevel JAVA_19
Java 19
-
JAVA_20
public static final ParserConfiguration.LanguageLevel JAVA_20
Java 20
-
JAVA_21
public static final ParserConfiguration.LanguageLevel JAVA_21
Java 21
-
-
Field Detail
-
RAW
public static ParserConfiguration.LanguageLevel RAW
Does no post processing or validation. Only for people wanting the fastest parsing.
-
POPULAR
public static ParserConfiguration.LanguageLevel POPULAR
The most used Java version.
-
CURRENT
public static ParserConfiguration.LanguageLevel CURRENT
The latest Java version that is available.
-
BLEEDING_EDGE
public static ParserConfiguration.LanguageLevel BLEEDING_EDGE
The newest Java features supported.
-
-
Method Detail
-
values
public static ParserConfiguration.LanguageLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ParserConfiguration.LanguageLevel c : ParserConfiguration.LanguageLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParserConfiguration.LanguageLevel valueOf(String name)
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()
-
-