public abstract static class TypeDescription.Generic.OfParameterizedType extends TypeDescription.Generic.AbstractBase
| Modifier and Type | Class and Description |
|---|---|
static class |
TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure
Represents a type erasure as a parameterized type where any type variable is used as a type argument
of the parameterized type and where the declaring type is defined as the type's owner type.
|
static class |
TypeDescription.Generic.OfParameterizedType.ForLoadedType
Description of a loaded parameterized type.
|
static class |
TypeDescription.Generic.OfParameterizedType.Latent
A latent description of a parameterized type.
|
protected static class |
TypeDescription.Generic.OfParameterizedType.RenderingDelegate
A rendering delegate for resolving a parameterized type's
Object.toString() representation. |
TypeDescription.Generic.AbstractBase, TypeDescription.Generic.AnnotationReader, TypeDescription.Generic.Builder, TypeDescription.Generic.LazyProjection, TypeDescription.Generic.OfGenericArray, TypeDescription.Generic.OfNonGenericType, TypeDescription.Generic.OfParameterizedType, TypeDescription.Generic.OfTypeVariable, TypeDescription.Generic.OfWildcardType, TypeDescription.Generic.Visitor<T>TypeDefinition.Sort, TypeDefinition.SuperClassIteratorNamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationANNOTATION, OBJECT, UNDEFINED, VOIDEMPTY_NAME, NO_NAMEEMPTY_MASK| Constructor and Description |
|---|
OfParameterizedType() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(TypeDescription.Generic.Visitor<T> visitor)
Applies a visitor to this generic type description.
|
boolean |
equals(Object other) |
String |
getActualName()
Returns the name of this element as it is found in the source code.
|
TypeDescription.Generic |
getComponentType()
Returns the component type of this type.
|
FieldList<FieldDescription.InGenericShape> |
getDeclaredFields()
Returns the fields that this type declares.
|
MethodList<MethodDescription.InGenericShape> |
getDeclaredMethods()
Returns the methods that this type declares.
|
TypeList.Generic |
getInterfaces()
Returns the interfaces that this type implements.
|
TypeList.Generic |
getLowerBounds()
Returns the lower bounds of this type.
|
TypeDefinition.Sort |
getSort()
Returns the sort of the generic type this instance represents.
|
StackSize |
getStackSize()
Returns the size of the type described by this instance.
|
TypeDescription.Generic |
getSuperClass()
Returns the super class of this type.
|
String |
getSymbol()
Returns the symbol of this type variable.
|
String |
getTypeName()
Returns the name of the type.
|
TypeVariableSource |
getTypeVariableSource()
Returns the source of this type variable.
|
TypeList.Generic |
getUpperBounds()
Returns the upper bounds of this type.
|
int |
hashCode() |
boolean |
isArray()
Checks if the type described by this entity is an array.
|
boolean |
isPrimitive()
Checks if the type described by this entity is a primitive type.
|
Iterator<TypeDefinition> |
iterator() |
boolean |
represents(Type type)
Checks if the type described by this instance represents
type. |
String |
toString() |
asGenericType, asRawType, getModifiersisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOwnerType, getTypeArgumentsasErasureisAnnotation, isInterfaceisAbstractisEnumisDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticisFinal, isSyntheticforEach, spliteratorgetDeclaredAnnotationspublic TypeDefinition.Sort getSort()
TypeDefinitionpublic TypeDescription.Generic getSuperClass()
TypeDefinitionTypeDefinition.Sort.NON_GENERIC),
parameterized types (TypeDefinition.Sort.PARAMETERIZED) or generic array types (TypeDefinition.Sort.GENERIC_ARRAY) types. Interface types
and the Object class do not define a super class where null is returned. Array types define Object
as their direct super class.null if no super class exists for this type.public TypeList.Generic getInterfaces()
TypeDefinitionTypeDefinition.Sort.NON_GENERIC),
parameterized types (TypeDefinition.Sort.PARAMETERIZED) or generic array types (TypeDefinition.Sort.GENERIC_ARRAY) types.public FieldList<FieldDescription.InGenericShape> getDeclaredFields()
TypeDefinitionTypeDefinition.Sort.NON_GENERIC),
parameterized types (TypeDefinition.Sort.PARAMETERIZED) or generic array types (TypeDefinition.Sort.GENERIC_ARRAY) types. Generic array
types never define fields and the returned list is always empty for such types.TypeDefinition.Sort.NON_GENERIC),
parameterized types (TypeDefinition.Sort.PARAMETERIZED) or generic array types (TypeDefinition.Sort.GENERIC_ARRAY) types. Generic array
types never define methods and the returned list is always empty for such types.public MethodList<MethodDescription.InGenericShape> getDeclaredMethods()
TypeDefinitionpublic TypeList.Generic getUpperBounds()
TypeDescription.Generic
Returns the upper bounds of this type. Any type with a well-defined upper bound is bound by at least one type. If no such
type is defined, the bound is implicitly Object.
Only non-symbolic type variables (TypeDefinition.Sort.VARIABLE, and wildcard types
(TypeDefinition.Sort.WILDCARD) have well-defined upper bounds. For other
types, an IllegalStateException is thrown.
public TypeList.Generic getLowerBounds()
TypeDescription.GenericReturns the lower bounds of this type.
Only wildcard types (Sort#WILDCARD) define a lower bound. For other
types, an IllegalStateException is thrown.
public TypeDescription.Generic getComponentType()
TypeDefinitionReturns the component type of this type.
Only non-generic types (TypeDescription.Generic.Sort#NON_GENERIC) and generic array types
TypeDescription.Generic.Sort#GENERIC_ARRAY) define a component type. For other
types, an IllegalStateException is thrown.
null if this type does not represent an array type.public TypeVariableSource getTypeVariableSource()
TypeDescription.GenericSort#VARIABLE. For other types, this method
throws an IllegalStateException.public String getSymbol()
TypeDescription.GenericSort#VARIABLE, Sort#VARIABLE_SYMBOLIC). For other types, this method
throws an IllegalStateException.public String getTypeName()
TypeDefinitionObject.toString() representations. For a non-generic
type, it is the fully qualified binary name of the type.public String getActualName()
NamedElementpublic boolean isPrimitive()
TypeDefinitiontrue if this type description represents a primitive type.public boolean isArray()
TypeDefinitiontrue if this type description represents an array.public boolean represents(Type type)
TypeDefinitiontype.represents in interface TypeDefinitionrepresents in class TypeDescription.Generic.AbstractBasetype - The type of interest.true if the type described by this instance represents type.public Iterator<TypeDefinition> iterator()
public <T> T accept(TypeDescription.Generic.Visitor<T> visitor)
TypeDescription.GenericT - The value that this visitor yields.visitor - The visitor to apply.public StackSize getStackSize()
TypeDefinitionTypeDescription.Generic.Sort#WILDCARD do not have a well-defined a stack size and
cause an IllegalStateException to be thrown.Copyright © 2014–2016. All rights reserved.