public static enum GenericTypeDescription.Sort extends Enum<GenericTypeDescription.Sort>
GenericTypeDescription's form.| Enum Constant and Description |
|---|
GENERIC_ARRAY
Represents a generic array type.
|
NON_GENERIC
Represents a non-generic type.
|
PARAMETERIZED
Represents a parameterized type.
|
VARIABLE
Represents a type variable that is attached to a
TypeVariableSource. |
VARIABLE_DETACHED
Represents a type variable that is not attached to a
TypeVariableSource but defines type bounds. |
VARIABLE_SYMBOLIC
Represents a type variable that is merely symbolic and is not attached to a
TypeVariableSource and does not defined bounds. |
WILDCARD
Represents a wildcard type.
|
| Modifier and Type | Method and Description |
|---|---|
static GenericTypeDescription |
describe(Type type)
Describes a loaded generic type as a
GenericTypeDescription. |
boolean |
isDetachedTypeVariable()
Checks if this type form represents a detached type variable.
|
boolean |
isGenericArray()
Checks if this type form represents a generic array.
|
boolean |
isNonGeneric()
Checks if this type form represents a non-generic type.
|
boolean |
isParameterized()
Checks if this type form represents a parameterized type.
|
boolean |
isSymbolicTypeVariable()
Checks if this type form represents a symbolic type variable.
|
boolean |
isTypeVariable()
Checks if this type form represents an attached type variable.
|
boolean |
isWildcard()
Checks if this type form represents a wildcard.
|
String |
toString() |
static GenericTypeDescription.Sort |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GenericTypeDescription.Sort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GenericTypeDescription.Sort NON_GENERIC
public static final GenericTypeDescription.Sort GENERIC_ARRAY
public static final GenericTypeDescription.Sort PARAMETERIZED
public static final GenericTypeDescription.Sort WILDCARD
public static final GenericTypeDescription.Sort VARIABLE
TypeVariableSource.public static final GenericTypeDescription.Sort VARIABLE_DETACHED
TypeVariableSource but defines type bounds.public static final GenericTypeDescription.Sort VARIABLE_SYMBOLIC
TypeVariableSource and does not defined bounds.public static GenericTypeDescription.Sort[] values()
for (GenericTypeDescription.Sort c : GenericTypeDescription.Sort.values()) System.out.println(c);
public static GenericTypeDescription.Sort 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 static GenericTypeDescription describe(Type type)
GenericTypeDescription.type - The type to describe.public boolean isNonGeneric()
true if this type form represents a non-generic.public boolean isParameterized()
true if this type form represents a parameterized type.public boolean isGenericArray()
true if this type form represents a generic array.public boolean isWildcard()
true if this type form represents a wildcard.public boolean isTypeVariable()
true if this type form represents an attached type variable.public boolean isDetachedTypeVariable()
true if this type form represents a detached type variable.public boolean isSymbolicTypeVariable()
true if this type form represents a symbolic type variable.public String toString()
toString in class Enum<GenericTypeDescription.Sort>Copyright © 2014–2015. All rights reserved.