public static enum TypeDefinition.Sort extends Enum<TypeDefinition.Sort>
TypeDescription.Generic
'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_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 TypeDescription.Generic |
describe(Type type)
Describes a loaded generic type as a
TypeDescription.Generic . |
protected static TypeDescription.Generic |
describe(Type type,
TypeDescription.Generic.AnnotationReader annotationReader)
Describes the generic type while using the supplied annotation reader for resolving type annotations if this
language feature is available on the current JVM.
|
boolean |
isGenericArray()
Checks if this type sort represents a generic array.
|
boolean |
isNonGeneric()
Checks if this type sort represents a non-generic type.
|
boolean |
isParameterized()
Checks if this type sort represents a parameterized type.
|
boolean |
isTypeVariable()
Checks if this type sort represents a type variable of any form.
|
boolean |
isWildcard()
Checks if this type sort represents a wildcard.
|
String |
toString() |
static TypeDefinition.Sort |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeDefinition.Sort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeDefinition.Sort NON_GENERIC
public static final TypeDefinition.Sort GENERIC_ARRAY
public static final TypeDefinition.Sort PARAMETERIZED
public static final TypeDefinition.Sort WILDCARD
public static final TypeDefinition.Sort VARIABLE
TypeVariableSource
.public static final TypeDefinition.Sort VARIABLE_SYMBOLIC
TypeVariableSource
and does not defined bounds.public static TypeDefinition.Sort[] values()
for (TypeDefinition.Sort c : TypeDefinition.Sort.values()) System.out.println(c);
public static TypeDefinition.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 TypeDescription.Generic describe(Type type)
TypeDescription.Generic
.type
- The type to describe.protected static TypeDescription.Generic describe(Type type, TypeDescription.Generic.AnnotationReader annotationReader)
type
- The type to describe.annotationReader
- The annotation reader for extracting type annotations.public boolean isNonGeneric()
true
if this sort form represents a non-generic.public boolean isParameterized()
true
if this sort form represents a parameterized type.public boolean isGenericArray()
true
if this type sort represents a generic array.public boolean isWildcard()
true
if this type sort represents a wildcard.public boolean isTypeVariable()
true
if this type sort represents an attached type variable.public String toString()
toString
in class Enum<TypeDefinition.Sort>
Copyright © 2014–2016. All rights reserved.