Enum TypeAnnotationEntryValue
- java.lang.Object
-
- java.lang.Enum<TypeAnnotationEntryValue>
-
- org.benf.cfr.reader.entities.attributes.TypeAnnotationEntryValue
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TypeAnnotationEntryValue>
public enum TypeAnnotationEntryValue extends java.lang.Enum<TypeAnnotationEntryValue>
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private TypeAnnotationLocation
location
private static java.util.Map<java.lang.Short,TypeAnnotationEntryValue>
lut
private TypeAnnotationEntryKind
type_parameter_target
private short
value
-
Constructor Summary
Constructors Modifier Constructor Description private
TypeAnnotationEntryValue(int value, TypeAnnotationEntryKind type_parameter_target, TypeAnnotationLocation location)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypeAnnotationEntryValue
get(short value)
TypeAnnotationEntryKind
getKind()
TypeAnnotationLocation
getLocation()
static TypeAnnotationEntryValue
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TypeAnnotationEntryValue[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
type_generic_class_interface
public static final TypeAnnotationEntryValue type_generic_class_interface
-
type_generic_method_constructor
public static final TypeAnnotationEntryValue type_generic_method_constructor
-
type_extends_implements
public static final TypeAnnotationEntryValue type_extends_implements
-
type_type_parameter_class_interface
public static final TypeAnnotationEntryValue type_type_parameter_class_interface
-
type_type_parameter_method_constructor
public static final TypeAnnotationEntryValue type_type_parameter_method_constructor
-
type_field
public static final TypeAnnotationEntryValue type_field
-
type_ret_or_new
public static final TypeAnnotationEntryValue type_ret_or_new
-
type_receiver
public static final TypeAnnotationEntryValue type_receiver
-
type_formal
public static final TypeAnnotationEntryValue type_formal
-
type_throws
public static final TypeAnnotationEntryValue type_throws
-
type_localvar
public static final TypeAnnotationEntryValue type_localvar
-
type_resourcevar
public static final TypeAnnotationEntryValue type_resourcevar
-
type_exceptionparameter
public static final TypeAnnotationEntryValue type_exceptionparameter
-
type_instanceof
public static final TypeAnnotationEntryValue type_instanceof
-
type_new
public static final TypeAnnotationEntryValue type_new
-
type_methodrefnew
public static final TypeAnnotationEntryValue type_methodrefnew
-
type_methodrefident
public static final TypeAnnotationEntryValue type_methodrefident
-
type_cast
public static final TypeAnnotationEntryValue type_cast
-
type_generic_cons_new
public static final TypeAnnotationEntryValue type_generic_cons_new
-
type_generic_methodinvoke
public static final TypeAnnotationEntryValue type_generic_methodinvoke
-
type_generic_cons_methodrefnew
public static final TypeAnnotationEntryValue type_generic_cons_methodrefnew
-
type_generic_methodrefident
public static final TypeAnnotationEntryValue type_generic_methodrefident
-
-
Field Detail
-
value
private short value
-
type_parameter_target
private TypeAnnotationEntryKind type_parameter_target
-
location
private TypeAnnotationLocation location
-
lut
private static final java.util.Map<java.lang.Short,TypeAnnotationEntryValue> lut
-
-
Constructor Detail
-
TypeAnnotationEntryValue
private TypeAnnotationEntryValue(int value, TypeAnnotationEntryKind type_parameter_target, TypeAnnotationLocation location)
-
-
Method Detail
-
values
public static TypeAnnotationEntryValue[] 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 (TypeAnnotationEntryValue c : TypeAnnotationEntryValue.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeAnnotationEntryValue 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
-
getKind
public TypeAnnotationEntryKind getKind()
-
getLocation
public TypeAnnotationLocation getLocation()
-
get
public static TypeAnnotationEntryValue get(short value)
-
-