Package com.google.turbine.bytecode
Enum ClassFile.TypeAnnotationInfo.TargetType
- java.lang.Object
-
- java.lang.Enum<ClassFile.TypeAnnotationInfo.TargetType>
-
- com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo.TargetType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ClassFile.TypeAnnotationInfo.TargetType>
- Enclosing class:
- ClassFile.TypeAnnotationInfo
public static enum ClassFile.TypeAnnotationInfo.TargetType extends java.lang.Enum<ClassFile.TypeAnnotationInfo.TargetType>
A JVMS 4.7.20 target_type kind.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASS_TYPE_PARAMETERCLASS_TYPE_PARAMETER_BOUNDFIELDMETHOD_FORMAL_PARAMETERMETHOD_RECEIVER_PARAMETERMETHOD_RETURNMETHOD_THROWSMETHOD_TYPE_PARAMETERMETHOD_TYPE_PARAMETER_BOUNDSUPERTYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description inttag()static ClassFile.TypeAnnotationInfo.TargetTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ClassFile.TypeAnnotationInfo.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 ClassFile.TypeAnnotationInfo.TargetType CLASS_TYPE_PARAMETER
-
METHOD_TYPE_PARAMETER
public static final ClassFile.TypeAnnotationInfo.TargetType METHOD_TYPE_PARAMETER
-
SUPERTYPE
public static final ClassFile.TypeAnnotationInfo.TargetType SUPERTYPE
-
CLASS_TYPE_PARAMETER_BOUND
public static final ClassFile.TypeAnnotationInfo.TargetType CLASS_TYPE_PARAMETER_BOUND
-
METHOD_TYPE_PARAMETER_BOUND
public static final ClassFile.TypeAnnotationInfo.TargetType METHOD_TYPE_PARAMETER_BOUND
-
FIELD
public static final ClassFile.TypeAnnotationInfo.TargetType FIELD
-
METHOD_RETURN
public static final ClassFile.TypeAnnotationInfo.TargetType METHOD_RETURN
-
METHOD_RECEIVER_PARAMETER
public static final ClassFile.TypeAnnotationInfo.TargetType METHOD_RECEIVER_PARAMETER
-
METHOD_FORMAL_PARAMETER
public static final ClassFile.TypeAnnotationInfo.TargetType METHOD_FORMAL_PARAMETER
-
METHOD_THROWS
public static final ClassFile.TypeAnnotationInfo.TargetType METHOD_THROWS
-
-
Method Detail
-
values
public static ClassFile.TypeAnnotationInfo.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 (ClassFile.TypeAnnotationInfo.TargetType c : ClassFile.TypeAnnotationInfo.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 ClassFile.TypeAnnotationInfo.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
-
tag
public int tag()
-
-