Package net.bytebuddy.description.type
Class TypeDescription.Generic.OfWildcardType.Latent
java.lang.Object
net.bytebuddy.description.ModifierReviewable.AbstractBase
net.bytebuddy.description.type.TypeDescription.Generic.AbstractBase
net.bytebuddy.description.type.TypeDescription.Generic.OfWildcardType
net.bytebuddy.description.type.TypeDescription.Generic.OfWildcardType.Latent
- All Implemented Interfaces:
Iterable<TypeDefinition>,AnnotationSource,ModifierReviewable,ModifierReviewable.ForFieldDescription,ModifierReviewable.ForMethodDescription,ModifierReviewable.ForParameterDescription,ModifierReviewable.ForTypeDefinition,ModifierReviewable.OfAbstraction,ModifierReviewable.OfByteCodeElement,ModifierReviewable.OfEnumeration,NamedElement,TypeDefinition,TypeDescription.Generic
- Enclosing class:
TypeDescription.Generic.OfWildcardType
public static class TypeDescription.Generic.OfWildcardType.Latent
extends TypeDescription.Generic.OfWildcardType
A latent description of a wildcard type.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.description.type.TypeDescription.Generic.OfWildcardType
TypeDescription.Generic.OfWildcardType.ForLoadedType, TypeDescription.Generic.OfWildcardType.LatentNested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationSource
AnnotationSource.Empty, AnnotationSource.ExplicitNested classes/interfaces inherited from interface net.bytebuddy.description.ModifierReviewable
ModifierReviewable.AbstractBase, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationNested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameNested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDefinition
TypeDefinition.Sort, TypeDefinition.SuperClassIteratorNested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription.Generic
TypeDescription.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> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AnnotationSourceThe annotation source to query for the declared annotations.private final List<? extends TypeDescription.Generic> The wildcard's lower bounds.private final List<? extends TypeDescription.Generic> The wildcard's upper bounds.Fields inherited from class net.bytebuddy.description.type.TypeDescription.Generic.OfWildcardType
SYMBOLFields inherited from interface net.bytebuddy.description.ModifierReviewable
EMPTY_MASKFields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAMEFields inherited from interface net.bytebuddy.description.type.TypeDefinition
RAW_TYPES_PROPERTYFields inherited from interface net.bytebuddy.description.type.TypeDescription.Generic
ANNOTATION, CLASS, OBJECT, UNDEFINED, VOID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLatent(List<? extends TypeDescription.Generic> upperBounds, List<? extends TypeDescription.Generic> lowerBounds, AnnotationSource annotationSource) Creates a description of a latent wildcard. -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeDescription.GenericboundedAbove(TypeDescription.Generic upperBound, AnnotationSource annotationSource) Creates a wildcard with an upper bound.static TypeDescription.GenericboundedBelow(TypeDescription.Generic lowerBound, AnnotationSource annotationSource) Creates a wildcard with a lower bound.Returns a list of annotations that are declared by this instance.Returns the lower bounds of this type.Returns the upper bounds of this type.static TypeDescription.Genericunbounded(AnnotationSource annotationSource) Creates an unbounded wildcard.Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.OfWildcardType
accept, asErasure, equals, findBindingOf, getActualName, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getOwnerType, getRecordComponents, getSort, getStackSize, getSuperClass, getSymbol, getTypeArguments, getTypeName, getTypeVariableSource, hashCode, isArray, isPrimitive, isRecord, iterator, represents, toStringMethods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AbstractBase
asGenericType, asRawType, getModifiersMethods inherited from class net.bytebuddy.description.ModifierReviewable.AbstractBase
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, isVolatileMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.bytebuddy.description.ModifierReviewable
getSyntheticState, isFinal, isSyntheticMethods inherited from interface net.bytebuddy.description.ModifierReviewable.ForTypeDefinition
getTypeManifestation, isAnnotation, isInterfaceMethods inherited from interface net.bytebuddy.description.ModifierReviewable.OfAbstraction
isAbstractMethods inherited from interface net.bytebuddy.description.ModifierReviewable.OfByteCodeElement
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticMethods inherited from interface net.bytebuddy.description.ModifierReviewable.OfEnumeration
getEnumerationState, isEnum
-
Field Details
-
upperBounds
The wildcard's upper bounds. -
lowerBounds
The wildcard's lower bounds. -
annotationSource
The annotation source to query for the declared annotations.
-
-
Constructor Details
-
Latent
protected Latent(List<? extends TypeDescription.Generic> upperBounds, List<? extends TypeDescription.Generic> lowerBounds, AnnotationSource annotationSource) Creates a description of a latent wildcard.- Parameters:
upperBounds- The wildcard's upper bounds.lowerBounds- The wildcard's lower bounds.annotationSource- The annotation source to query for the declared annotations.
-
-
Method Details
-
unbounded
Creates an unbounded wildcard. Such a wildcard is implicitly bound above by theObjecttype.- Parameters:
annotationSource- The annotation source to query for the declared annotations.- Returns:
- A description of an unbounded wildcard.
-
boundedAbove
public static TypeDescription.Generic boundedAbove(TypeDescription.Generic upperBound, AnnotationSource annotationSource) Creates a wildcard with an upper bound.- Parameters:
upperBound- The upper bound of the wildcard.annotationSource- The annotation source to query for the declared annotations.- Returns:
- A wildcard with the given upper bound.
-
boundedBelow
public static TypeDescription.Generic boundedBelow(TypeDescription.Generic lowerBound, AnnotationSource annotationSource) Creates a wildcard with a lower bound. Such a wildcard is implicitly bounded above by theObjecttype.- Parameters:
lowerBound- The lower bound of the wildcard.annotationSource- The annotation source to query for the declared annotations.- Returns:
- A wildcard with the given lower bound.
-
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, anIllegalStateExceptionis thrown.- Returns:
- The upper bounds of this type.
-
getLowerBounds
Returns the lower bounds of this type.
Only wildcard types (
TypeDefinition.Sort.WILDCARD) define a lower bound. For other types, anIllegalStateExceptionis thrown.- Returns:
- The lower bounds of this type.
-
getDeclaredAnnotations
Returns a list of annotations that are declared by this instance.- Returns:
- A list of declared annotations.
-