Package com.ibm.wala.shrike.shrikeCT
Enum TypeAnnotationsReader.TargetType
- java.lang.Object
-
- java.lang.Enum<TypeAnnotationsReader.TargetType>
-
- com.ibm.wala.shrike.shrikeCT.TypeAnnotationsReader.TargetType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TypeAnnotationsReader.TargetType>
- Enclosing class:
- TypeAnnotationsReader
public static enum TypeAnnotationsReader.TargetType extends java.lang.Enum<TypeAnnotationsReader.TargetType>
Known target_types for JSR 308 Type-Annotation.Constant names taken from http://types.cs.washington.edu/jsr308/
- See Also:
- JLS (SE8), 4.7.20
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description TypeAnnotationsReader.TypeAnnotationLocationlocationTypeAnnotationsReader.TargetInfotarget_infointtarget_type
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeAnnotationsReader.TargetTypefromValue(int value)static TypeAnnotationsReader.TargetTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TypeAnnotationsReader.TargetType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLASS_TYPE_PARAMETER
public static final TypeAnnotationsReader.TargetType CLASS_TYPE_PARAMETER
-
METHOD_TYPE_PARAMETER
public static final TypeAnnotationsReader.TargetType METHOD_TYPE_PARAMETER
-
CLASS_EXTENDS
public static final TypeAnnotationsReader.TargetType CLASS_EXTENDS
-
CLASS_TYPE_PARAMETER_BOUND
public static final TypeAnnotationsReader.TargetType CLASS_TYPE_PARAMETER_BOUND
-
METHOD_TYPE_PARAMETER_BOUND
public static final TypeAnnotationsReader.TargetType METHOD_TYPE_PARAMETER_BOUND
-
FIELD
public static final TypeAnnotationsReader.TargetType FIELD
-
METHOD_RETURN
public static final TypeAnnotationsReader.TargetType METHOD_RETURN
-
METHOD_RECEIVER
public static final TypeAnnotationsReader.TargetType METHOD_RECEIVER
-
METHOD_FORMAL_PARAMETER
public static final TypeAnnotationsReader.TargetType METHOD_FORMAL_PARAMETER
-
THROWS
public static final TypeAnnotationsReader.TargetType THROWS
-
LOCAL_VARIABLE
public static final TypeAnnotationsReader.TargetType LOCAL_VARIABLE
-
RESOURCE_VARIABLE
public static final TypeAnnotationsReader.TargetType RESOURCE_VARIABLE
-
EXCEPTION_PARAMETER
public static final TypeAnnotationsReader.TargetType EXCEPTION_PARAMETER
-
INSTANCEOF
public static final TypeAnnotationsReader.TargetType INSTANCEOF
-
NEW
public static final TypeAnnotationsReader.TargetType NEW
-
CONSTRUCTOR_REFERENCE
public static final TypeAnnotationsReader.TargetType CONSTRUCTOR_REFERENCE
-
METHOD_REFERENCE
public static final TypeAnnotationsReader.TargetType METHOD_REFERENCE
-
CAST
public static final TypeAnnotationsReader.TargetType CAST
-
CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT
public static final TypeAnnotationsReader.TargetType CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT
-
METHOD_INVOCATION_TYPE_ARGUMENT
public static final TypeAnnotationsReader.TargetType METHOD_INVOCATION_TYPE_ARGUMENT
-
CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT
public static final TypeAnnotationsReader.TargetType CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT
-
METHOD_REFERENCE_TYPE_ARGUMENT
public static final TypeAnnotationsReader.TargetType METHOD_REFERENCE_TYPE_ARGUMENT
-
-
Field Detail
-
target_type
public final int target_type
-
target_info
public final TypeAnnotationsReader.TargetInfo target_info
-
location
public final TypeAnnotationsReader.TypeAnnotationLocation location
-
-
Method Detail
-
values
public static TypeAnnotationsReader.TargetType[] 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 (TypeAnnotationsReader.TargetType c : TypeAnnotationsReader.TargetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeAnnotationsReader.TargetType 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
-
fromValue
public static TypeAnnotationsReader.TargetType fromValue(int value)
-
-