public static enum GenericUtilities.TypeCategory extends java.lang.Enum<GenericUtilities.TypeCategory>
Enum Constant | Description |
---|---|
ARRAY_TYPE |
A array
|
NON_REFERENCE_TYPE |
anything that is not a reference
|
PARAMETERIZED |
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.
|
Modifier and Type | Method | Description |
---|---|---|
abstract java.lang.String |
asString(GenericObjectType obj) |
|
static java.lang.String |
asString(org.apache.bcel.generic.ArrayType atype) |
|
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.
|
public static final GenericUtilities.TypeCategory NON_REFERENCE_TYPE
public static final GenericUtilities.TypeCategory PLAIN_OBJECT_TYPE
public static final GenericUtilities.TypeCategory ARRAY_TYPE
public static final GenericUtilities.TypeCategory PARAMETERIZED
List<String>
public static final GenericUtilities.TypeCategory TYPE_VARIABLE
E
.
Underlying ObjectType is java.lang.Object
public static final GenericUtilities.TypeCategory WILDCARD
?
.
Underlying ObjectType is java.lang.Object
public static final GenericUtilities.TypeCategory WILDCARD_EXTENDS
? extends Comparable
.
Underlying ObjectType is java.lang.Object
.
The extended type can be an ObjectType or a GenericObjectTypepublic static final GenericUtilities.TypeCategory WILDCARD_SUPER
? super Comparable
.
Underlying ObjectType is java.lang.Object
.
The super type can be an ObjectType or a GenericObjectTypepublic static GenericUtilities.TypeCategory[] values()
for (GenericUtilities.TypeCategory c : GenericUtilities.TypeCategory.values()) System.out.println(c);
public static GenericUtilities.TypeCategory valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract java.lang.String asString(GenericObjectType obj)
public static java.lang.String asString(org.apache.bcel.generic.ArrayType atype)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.