Package com.google.javascript.jscomp
Enum CheckLevelLegacy
- java.lang.Object
-
- java.lang.Enum<CheckLevelLegacy>
-
- com.google.javascript.jscomp.CheckLevelLegacy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CheckLevelLegacy>
public enum CheckLevelLegacy extends java.lang.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 useCheckLevel
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CheckLevelLegacy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CheckLevelLegacy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEGACY
public static final CheckLevelLegacy LEGACY
-
OFF
public static final CheckLevelLegacy OFF
-
WARNING
public static final CheckLevelLegacy WARNING
-
ERROR
public static final CheckLevelLegacy ERROR
-
-
Method Detail
-
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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-