public static class TypeDescription.Generic.OfParameterizedType.ForLoadedType extends TypeDescription.Generic.OfParameterizedType
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TypeDescription.Generic.OfParameterizedType.ForLoadedType.ParameterArgumentTypeList
A type list that represents a loaded parameterized type's parameter types.
|
TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure, TypeDescription.Generic.OfParameterizedType.ForLoadedType, TypeDescription.Generic.OfParameterizedType.ForReifiedType, TypeDescription.Generic.OfParameterizedType.Latent, TypeDescription.Generic.OfParameterizedType.RenderingDelegateTypeDescription.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.OfEnumerationAnnotationSource.Empty, AnnotationSource.ExplicitANNOTATION, CLASS, OBJECT, UNDEFINED, VOIDRAW_TYPES_PROPERTYEMPTY_NAME, NO_NAMEEMPTY_MASK| Modifier | Constructor and Description |
|---|---|
|
ForLoadedType(ParameterizedType parameterizedType)
Creates a description of the loaded parameterized type.
|
protected |
ForLoadedType(ParameterizedType parameterizedType,
TypeDescription.Generic.AnnotationReader annotationReader)
Creates a description of the loaded 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.
|
boolean |
represents(Type type)
Checks if the type described by this instance represents
type. |
accept, equals, findBindingOf, getActualName, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getSort, getStackSize, getSuperClass, getSymbol, getTypeName, getTypeVariableSource, getUpperBounds, hashCode, isArray, isPrimitive, iterator, toStringasGenericType, asRawType, getModifiersgetEnumerationState, getFieldManifestation, getFieldPersistence, getMethodManifestation, getMethodStrictness, getOwnership, getParameterManifestation, getProvisioningState, getSynchronizationState, getSyntheticState, getTypeManifestation, getVisibility, isAbstract, 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, waitgetTypeManifestation, isAnnotation, isInterfaceisAbstractgetEnumerationState, isEnumgetOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticgetSyntheticState, isFinal, isSyntheticforEach, spliteratorpublic ForLoadedType(ParameterizedType parameterizedType)
parameterizedType - The represented parameterized type.protected ForLoadedType(ParameterizedType parameterizedType, TypeDescription.Generic.AnnotationReader annotationReader)
parameterizedType - The represented parameterized type.annotationReader - The annotation reader to query for the parameterized type's annotations.public TypeList.Generic getTypeArguments()
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 TypeDescription.Generic getOwnerType()
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 type, 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 TypeDescription asErasure()
TypeDescription.Generic.Sort#WILDCARD)
do not have a well-defined erasure and cause an IllegalStateException to be thrown.public AnnotationList getDeclaredAnnotations()
public boolean represents(Type type)
type.represents in interface TypeDefinitionrepresents in class TypeDescription.Generic.OfParameterizedTypetype - The type of interest.true if the type described by this instance represents type.Copyright © 2014–2019. All rights reserved.