Package com.google.errorprone
Enum BugPattern.SeverityLevel
- java.lang.Object
-
- java.lang.Enum<BugPattern.SeverityLevel>
-
- com.google.errorprone.BugPattern.SeverityLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<BugPattern.SeverityLevel>
- Enclosing class:
- BugPattern
public static enum BugPattern.SeverityLevel extends Enum<BugPattern.SeverityLevel>
The severity of the diagnostic.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR
SUGGESTION
Note that this level generally disables the bug checker.WARNING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BugPattern.SeverityLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static BugPattern.SeverityLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR
public static final BugPattern.SeverityLevel ERROR
-
WARNING
public static final BugPattern.SeverityLevel WARNING
-
SUGGESTION
public static final BugPattern.SeverityLevel SUGGESTION
Note that this level generally disables the bug checker.
-
-
Method Detail
-
values
public static BugPattern.SeverityLevel[] 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 (BugPattern.SeverityLevel c : BugPattern.SeverityLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BugPattern.SeverityLevel 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
-
-