public static class TypeDescription.Generic.OfParameterizedType.Latent extends TypeDescription.Generic.OfParameterizedType
TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure, TypeDescription.Generic.OfParameterizedType.ForLoadedType, TypeDescription.Generic.OfParameterizedType.Latent
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.SuperClassIterator
NamedElement.WithGenericName, NamedElement.WithRuntimeName
ANNOTATION, OBJECT, UNDEFINED, VOID
EMPTY_NAME, NO_NAME
Constructor and Description |
---|
Latent(TypeDescription rawType,
TypeDescription.Generic ownerType,
List<? extends TypeDescription.Generic> parameters,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a description of a latent parameterized type.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
asErasure()
Returns the erasure of this type.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
TypeDescription.Generic |
getOwnerType()
Returns the owner type of this type.
|
TypeList.Generic |
getTypeArguments()
Returns the type arguments of this type.
|
accept, equals, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getSort, getSourceCodeName, getStackSize, getSuperClass, getSymbol, getTypeName, getUpperBounds, getVariableSource, hashCode, isArray, isPrimitive, iterator, represents, toString
asGenericType, asRawType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public Latent(TypeDescription rawType, TypeDescription.Generic ownerType, List<? extends TypeDescription.Generic> parameters, List<? extends AnnotationDescription> declaredAnnotations)
rawType
- The raw type of the described parameterized type.ownerType
- This parameterized type's owner type or null
if no owner type exists.parameters
- The parameters of this parameterized type.declaredAnnotations
- This type's type annotations.public TypeDescription asErasure()
TypeDefinition
TypeDescription.Generic.Sort#WILDCARD
)
do not have a well-defined erasure and cause an IllegalStateException
to be thrown.public TypeDescription.Generic getOwnerType()
TypeDescription.Generic
Returns the owner type of this type. A type's owner type describes a nested type's declaring type.
If it exists, the returned type can be a non-generic or parameterized type. If a class has no
declaring class, null
is returned.
An owner type is only well-defined for parameterized types (Sort#PARAMETERIZED
),
for non-generic types (Sort#NON_GENERIC
) and for generic arrays (Sort#GENERIC_ARRAY
).
For all other types, this method throws an IllegalStateException
.
null
if no owner type exists.public TypeList.Generic getTypeArguments()
TypeDescription.Generic
Returns the type arguments of this type.
Parameters are only well-defined for parameterized types (Sort#PARAMETERIZED
).
For all other types, this method throws an IllegalStateException
.
public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
Copyright © 2014–2016. All rights reserved.