Package com.google.turbine.model
Enum TurbineElementType
- java.lang.Object
-
- java.lang.Enum<TurbineElementType>
-
- com.google.turbine.model.TurbineElementType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TurbineElementType>
public enum TurbineElementType extends java.lang.Enum<TurbineElementType>
Program locations where an annotation may appear.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNOTATION_TYPECONSTRUCTORFIELDLOCAL_VARIABLEMETHODMODULEPACKAGEPARAMETERRECORD_COMPONENTTYPETYPE_PARAMETERTYPE_USE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TurbineElementTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TurbineElementType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANNOTATION_TYPE
public static final TurbineElementType ANNOTATION_TYPE
-
CONSTRUCTOR
public static final TurbineElementType CONSTRUCTOR
-
FIELD
public static final TurbineElementType FIELD
-
LOCAL_VARIABLE
public static final TurbineElementType LOCAL_VARIABLE
-
METHOD
public static final TurbineElementType METHOD
-
MODULE
public static final TurbineElementType MODULE
-
PACKAGE
public static final TurbineElementType PACKAGE
-
PARAMETER
public static final TurbineElementType PARAMETER
-
TYPE
public static final TurbineElementType TYPE
-
TYPE_PARAMETER
public static final TurbineElementType TYPE_PARAMETER
-
TYPE_USE
public static final TurbineElementType TYPE_USE
-
RECORD_COMPONENT
public static final TurbineElementType RECORD_COMPONENT
-
-
Method Detail
-
values
public static TurbineElementType[] 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 (TurbineElementType c : TurbineElementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TurbineElementType 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
-
-