protected static class TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.LazyParameterizedType extends TypeDescription.Generic.OfParameterizedType
TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure, TypeDescription.Generic.OfParameterizedType.ForLoadedType, TypeDescription.Generic.OfParameterizedType.ForReifiedType, TypeDescription.Generic.OfParameterizedType.Latent, TypeDescription.Generic.OfParameterizedType.RenderingDelegate
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.WithOptionalName, NamedElement.WithRuntimeName
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
AnnotationSource.Empty, AnnotationSource.Explicit
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> |
annotationTokens
A mapping of type annotations for this type.
|
private java.lang.String |
name
The binary name of this parameterized type's raw type.
|
private TypePool.Default.LazyTypeDescription.GenericTypeToken |
ownerTypeToken
A token that represents this type's owner type.
|
private java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> |
parameterTypeTokens
Tokens that represent this parameterized type's parameters.
|
private java.lang.String |
typePath
This type's type path.
|
private TypePool |
typePool
The type pool that is used for locating a generic type.
|
private TypeVariableSource |
typeVariableSource
The type variable source to use for resolving type variables.
|
ANNOTATION, CLASS, OBJECT, UNDEFINED, VOID
RAW_TYPES_PROPERTY
EMPTY_NAME, NO_NAME
EMPTY_MASK
Modifier | Constructor and Description |
---|---|
protected |
LazyParameterizedType(TypePool typePool,
TypeVariableSource typeVariableSource,
java.lang.String typePath,
java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
java.lang.String name,
java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> parameterTypeTokens,
TypePool.Default.LazyTypeDescription.GenericTypeToken ownerTypeToken)
Creates a new lazy 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, findBindingOf, getActualName, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getSort, getStackSize, getSuperClass, getSymbol, getTypeName, getTypeVariableSource, getUpperBounds, hashCode, isArray, isPrimitive, iterator, represents, toString
asGenericType, asRawType, getModifiers
getEnumerationState, 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, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTypeManifestation, isAnnotation, isInterface
isAbstract
getEnumerationState, isEnum
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
getSyntheticState, isFinal, isSynthetic
private final TypePool typePool
private final TypeVariableSource typeVariableSource
private final java.lang.String typePath
private final java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens
private final java.lang.String name
private final java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> parameterTypeTokens
private final TypePool.Default.LazyTypeDescription.GenericTypeToken ownerTypeToken
protected LazyParameterizedType(TypePool typePool, TypeVariableSource typeVariableSource, java.lang.String typePath, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, java.lang.String name, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> parameterTypeTokens, TypePool.Default.LazyTypeDescription.GenericTypeToken ownerTypeToken)
typePool
- The type pool that is used for locating a generic type.typeVariableSource
- The type variable source to use for resolving type variables.typePath
- This type's type path.annotationTokens
- A mapping of type annotations for this type.name
- The binary name of this parameterized type's raw type.parameterTypeTokens
- Tokens that represent this parameterized type's parameters.ownerTypeToken
- A token that represents this type's owner type.public TypeDescription asErasure()
TypeDescription.Generic.Sort#WILDCARD
)
do not have a well-defined erasure and cause an IllegalStateException
to be thrown.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 AnnotationList getDeclaredAnnotations()