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:
java.io.Serializable
,java.lang.Comparable<GenericUtilities.TypeCategory>
- Enclosing class:
- GenericUtilities
public static enum GenericUtilities.TypeCategory extends java.lang.Enum<GenericUtilities.TypeCategory>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_TYPE
A arrayPARAMETERIZED
A parameterized class e.g.PLAIN_OBJECT_TYPE
A simple (non-generic ObjectType)TYPE_VARIABLE
A simple type variable e.g.WILDCARD
A simple wildcard i.e.WILDCARD_EXTENDS
A wildcard that extends another ObjectType e.g.WILDCARD_SUPER
A wildcard that is extended by another ObjectType e.g.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
asString(GenericObjectType obj)
static java.lang.String
asString(org.apache.bcel.generic.ArrayType atype)
abstract org.apache.bcel.generic.ReferenceType
produce(GenericObjectType obj)
static GenericUtilities.TypeCategory
valueOf(java.lang.String name)
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 Detail
-
PLAIN_OBJECT_TYPE
public static final GenericUtilities.TypeCategory PLAIN_OBJECT_TYPE
A simple (non-generic ObjectType)
-
ARRAY_TYPE
public static final GenericUtilities.TypeCategory ARRAY_TYPE
A array
-
PARAMETERIZED
public static final GenericUtilities.TypeCategory PARAMETERIZED
A parameterized class e.g.List<String>
-
TYPE_VARIABLE
public static final GenericUtilities.TypeCategory TYPE_VARIABLE
A simple type variable e.g.E
. Underlying ObjectType isjava.lang.Object
-
WILDCARD
public static final GenericUtilities.TypeCategory WILDCARD
A simple wildcard i.e.?
. Underlying ObjectType isjava.lang.Object
-
WILDCARD_EXTENDS
public static final GenericUtilities.TypeCategory 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
public static final GenericUtilities.TypeCategory 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 Detail
-
values
public static GenericUtilities.TypeCategory[] 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 (GenericUtilities.TypeCategory c : GenericUtilities.TypeCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GenericUtilities.TypeCategory 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
-
asString
public abstract java.lang.String asString(GenericObjectType obj)
-
produce
public abstract org.apache.bcel.generic.ReferenceType produce(GenericObjectType obj)
-
asString
public static java.lang.String asString(org.apache.bcel.generic.ArrayType atype)
-
-