Enum GuardedByExpression.Kind
- java.lang.Object
-
- java.lang.Enum<GuardedByExpression.Kind>
-
- com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Kind
-
- All Implemented Interfaces:
Serializable
,Comparable<GuardedByExpression.Kind>
- Enclosing class:
- GuardedByExpression
public static enum GuardedByExpression.Kind extends Enum<GuardedByExpression.Kind>
GuardedByExpression
kind.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASS_LITERAL
ERROR
LOCAL_VARIABLE
SELECT
THIS
TYPE_LITERAL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GuardedByExpression.Kind
valueOf(String name)
Returns the enum constant of this type with the specified name.static GuardedByExpression.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THIS
public static final GuardedByExpression.Kind THIS
-
CLASS_LITERAL
public static final GuardedByExpression.Kind CLASS_LITERAL
-
TYPE_LITERAL
public static final GuardedByExpression.Kind TYPE_LITERAL
-
LOCAL_VARIABLE
public static final GuardedByExpression.Kind LOCAL_VARIABLE
-
SELECT
public static final GuardedByExpression.Kind SELECT
-
ERROR
public static final GuardedByExpression.Kind ERROR
-
-
Method Detail
-
values
public static GuardedByExpression.Kind[] 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 (GuardedByExpression.Kind c : GuardedByExpression.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GuardedByExpression.Kind 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
-
-