public static class TypeDescription.Generic.OfTypeVariable.ForLoadedType extends TypeDescription.Generic.OfTypeVariable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TypeDescription.Generic.OfTypeVariable.ForLoadedType.TypeVariableBoundList
A list of type variable bounds for a loaded
TypeVariable that resolves annotations.. |
TypeDescription.Generic.OfTypeVariable.ForLoadedType, TypeDescription.Generic.OfTypeVariable.Symbolic, TypeDescription.Generic.OfTypeVariable.WithAnnotationOverlayTypeDescription.Generic.AbstractBase, TypeDescription.Generic.AnnotationReader, TypeDescription.Generic.Builder, TypeDescription.Generic.LazyProjection, TypeDescription.Generic.LazyProxy, TypeDescription.Generic.OfGenericArray, TypeDescription.Generic.OfNonGenericType, TypeDescription.Generic.OfParameterizedType, TypeDescription.Generic.OfTypeVariable, TypeDescription.Generic.OfWildcardType, TypeDescription.Generic.Visitor<T>TypeDefinition.Sort, TypeDefinition.SuperClassIteratorNamedElement.WithDescriptor, NamedElement.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(TypeVariable<?> typeVariable)
Creates a description of a loaded type variable.
|
protected |
ForLoadedType(TypeVariable<?> typeVariable,
TypeDescription.Generic.AnnotationReader annotationReader)
Creates a description of a loaded type variable with an annotation.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
String |
getSymbol()
Returns the symbol of this type variable.
|
TypeVariableSource |
getTypeVariableSource()
Returns the source of this type variable.
|
TypeList.Generic |
getUpperBounds()
Returns the upper bounds of this type.
|
boolean |
represents(Type type)
Checks if the type described by this instance represents
type. |
accept, asErasure, equals, findBindingOf, getActualName, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getOwnerType, getRecordComponents, getSort, getStackSize, getSuperClass, getTypeArguments, getTypeName, hashCode, isArray, isPrimitive, isRecord, 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(TypeVariable<?> typeVariable)
typeVariable - The represented type variable.protected ForLoadedType(TypeVariable<?> typeVariable, TypeDescription.Generic.AnnotationReader annotationReader)
typeVariable - The represented type variable.annotationReader - The annotation reader to query for the variable's annotations.public TypeVariableSource getTypeVariableSource()
Sort#VARIABLE. For other types, this method
throws an IllegalStateException.public TypeList.Generic getUpperBounds()
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 String getSymbol()
Sort#VARIABLE, Sort#VARIABLE_SYMBOLIC). For other types, this method
throws an IllegalStateException.public AnnotationList getDeclaredAnnotations()
public boolean represents(Type type)
type.represents in interface TypeDefinitionrepresents in class TypeDescription.Generic.OfTypeVariabletype - The type of interest.true if the type described by this instance represents type.Copyright © 2014–2025. All rights reserved.