public static enum Config.LanguageMode extends Enum<Config.LanguageMode>
Enum Constant and Description |
---|
ECMASCRIPT3 |
ECMASCRIPT5 |
ECMASCRIPT5_STRICT |
ECMASCRIPT6 |
ECMASCRIPT6_STRICT |
ECMASCRIPT6_TYPED |
ECMASCRIPT7 |
ECMASCRIPT8 |
Modifier and Type | Field and Description |
---|---|
FeatureSet |
featureSet |
Config.StrictMode |
strictMode |
Modifier and Type | Method and Description |
---|---|
static Config.LanguageMode |
minimumRequiredFor(FeatureSet.Feature feature)
Returns the lowest
Config.LanguageMode that supports the specified feature. |
static Config.LanguageMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Config.LanguageMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Config.LanguageMode ECMASCRIPT3
public static final Config.LanguageMode ECMASCRIPT5
public static final Config.LanguageMode ECMASCRIPT5_STRICT
public static final Config.LanguageMode ECMASCRIPT6
public static final Config.LanguageMode ECMASCRIPT6_STRICT
public static final Config.LanguageMode ECMASCRIPT7
public static final Config.LanguageMode ECMASCRIPT8
public static final Config.LanguageMode ECMASCRIPT6_TYPED
public final FeatureSet featureSet
public final Config.StrictMode strictMode
public static Config.LanguageMode[] values()
for (Config.LanguageMode c : Config.LanguageMode.values()) System.out.println(c);
public static Config.LanguageMode 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 static Config.LanguageMode minimumRequiredFor(FeatureSet.Feature feature)
Config.LanguageMode
that supports the specified feature.Copyright © 2009-2016 Google. All Rights Reserved.