public static enum GenericUtilities.TypeCategory extends Enum<GenericUtilities.TypeCategory>
| Enum Constant and Description |
|---|
ARRAY_TYPE
A array
|
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 and Description |
|---|---|
static String |
asString(org.apache.bcel.generic.ArrayType atype) |
abstract String |
asString(GenericObjectType obj) |
abstract org.apache.bcel.generic.ReferenceType |
produce(GenericObjectType obj) |
static GenericUtilities.TypeCategory |
valueOf(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 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.Objectpublic static final GenericUtilities.TypeCategory WILDCARD
?. Underlying ObjectType is
java.lang.Objectpublic 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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract String asString(GenericObjectType obj)
public abstract org.apache.bcel.generic.ReferenceType produce(GenericObjectType obj)
public static String asString(org.apache.bcel.generic.ArrayType atype)
Copyright © 2003–2015. All rights reserved.