com.google.javascript.jscomp
Enum CheckLevelLegacy
java.lang.Object
java.lang.Enum<CheckLevelLegacy>
com.google.javascript.jscomp.CheckLevelLegacy
- All Implemented Interfaces:
- Serializable, Comparable<CheckLevelLegacy>
public enum CheckLevelLegacy
- extends Enum<CheckLevelLegacy>
Enum used in flags to control the behavior of JS compiler checks. These
must be converted to CheckLevel enums before being used to control
options. Only use this for legacy flags. For new flags, simply use
CheckLevel
.
LEGACY
public static final CheckLevelLegacy LEGACY
OFF
public static final CheckLevelLegacy OFF
WARNING
public static final CheckLevelLegacy WARNING
ERROR
public static final CheckLevelLegacy ERROR
values
public static CheckLevelLegacy[] 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 (CheckLevelLegacy c : CheckLevelLegacy.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CheckLevelLegacy 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 name
NullPointerException
- if the argument is null