Package edu.umd.cs.findbugs.ba.generic
Enum GenericUtilities.TypeCategory
java.lang.Object
java.lang.Enum<GenericUtilities.TypeCategory>
edu.umd.cs.findbugs.ba.generic.GenericUtilities.TypeCategory
- All Implemented Interfaces:
Serializable
,Comparable<GenericUtilities.TypeCategory>
,java.lang.constant.Constable
- Enclosing class:
GenericUtilities
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA arrayA parameterized class e.g.A simple (non-generic ObjectType)A simple type variable e.g.A simple wildcard i.e.A wildcard that extends another ObjectType e.g.A wildcard that is extended by another ObjectType e.g. -
Method Summary
Modifier and TypeMethodDescriptionabstract String
static String
asString
(org.apache.bcel.generic.ArrayType atype) abstract org.apache.bcel.generic.ReferenceType
produce
(GenericObjectType obj) Returns the enum constant of this type with the specified name.static GenericUtilities.TypeCategory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PLAIN_OBJECT_TYPE
A simple (non-generic ObjectType) -
ARRAY_TYPE
A array -
PARAMETERIZED
A parameterized class e.g.List<String>
-
TYPE_VARIABLE
A simple type variable e.g.E
. Underlying ObjectType isjava.lang.Object
-
WILDCARD
A simple wildcard i.e.?
. Underlying ObjectType isjava.lang.Object
-
WILDCARD_EXTENDS
A wildcard that extends another ObjectType e.g.? extends Comparable
. Underlying ObjectType isjava.lang.Object
. The extended type can be an ObjectType or a GenericObjectType -
WILDCARD_SUPER
A wildcard that is extended by another ObjectType e.g.? super Comparable
. Underlying ObjectType isjava.lang.Object
. The super type can be an ObjectType or a GenericObjectType
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
asString
-
produce
-
asString
-