Package net.bytebuddy.description.type
Class TypeList.Generic.OfLoadedInterfaceTypes.TypeProjection
java.lang.Object
net.bytebuddy.description.ModifierReviewable.AbstractBase
net.bytebuddy.description.type.TypeDescription.Generic.AbstractBase
net.bytebuddy.description.type.TypeDescription.Generic.LazyProjection
net.bytebuddy.description.type.TypeDescription.Generic.LazyProjection.WithLazyNavigation
net.bytebuddy.description.type.TypeDescription.Generic.LazyProjection.WithLazyNavigation.OfAnnotatedElement
net.bytebuddy.description.type.TypeList.Generic.OfLoadedInterfaceTypes.TypeProjection
- 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:
- TypeList.Generic.OfLoadedInterfaceTypes
private static class TypeList.Generic.OfLoadedInterfaceTypes.TypeProjection
extends TypeDescription.Generic.LazyProjection.WithLazyNavigation.OfAnnotatedElement
A type projection of an interface type.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.description.type.TypeDescription.Generic.LazyProjection.WithLazyNavigation
TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazyInterfaceList, TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazyInterfaceType, TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazySuperClass, TypeDescription.Generic.LazyProjection.WithLazyNavigation.OfAnnotatedElement
Nested classes/interfaces inherited from class net.bytebuddy.description.type.TypeDescription.Generic.LazyProjection
TypeDescription.Generic.LazyProjection.ForLoadedFieldType, TypeDescription.Generic.LazyProjection.ForLoadedReturnType, TypeDescription.Generic.LazyProjection.ForLoadedSuperClass, TypeDescription.Generic.LazyProjection.OfConstructorParameter, TypeDescription.Generic.LazyProjection.OfMethodParameter, TypeDescription.Generic.LazyProjection.OfRecordComponent, TypeDescription.Generic.LazyProjection.WithEagerNavigation, TypeDescription.Generic.LazyProjection.WithLazyNavigation, TypeDescription.Generic.LazyProjection.WithResolvedErasure
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationSource
AnnotationSource.Empty, AnnotationSource.Explicit
Nested classes/interfaces inherited from interface net.bytebuddy.description.ModifierReviewable
ModifierReviewable.AbstractBase, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
Nested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDefinition
TypeDefinition.Sort, TypeDefinition.SuperClassIterator
Nested 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.OfGenericArray, TypeDescription.Generic.OfNonGenericType, TypeDescription.Generic.OfParameterizedType, TypeDescription.Generic.OfTypeVariable, TypeDescription.Generic.OfWildcardType, TypeDescription.Generic.Visitor<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class<?>[]
The erasures of the represented type's interface types.private final int
The index of the generic interface type that is represented.private final Class<?>
The type of which an interface type is represented.Fields inherited from interface net.bytebuddy.description.ModifierReviewable
EMPTY_MASK
Fields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME
Fields inherited from interface net.bytebuddy.description.type.TypeDefinition
RAW_TYPES_PROPERTY
Fields inherited from interface net.bytebuddy.description.type.TypeDescription.Generic
ANNOTATION, CLASS, OBJECT, UNDEFINED, VOID
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
TypeProjection
(Class<?> type, int index, Class<?>[] erasure) Creates a new lazy type projection of a generic interface type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the erasure of this type.protected TypeDescription.Generic.AnnotationReader
Returns the current type's annotation reader.protected TypeDescription.Generic
resolve()
Resolves the actual generic type.Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.LazyProjection.WithLazyNavigation.OfAnnotatedElement
getDeclaredAnnotations
Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.LazyProjection.WithLazyNavigation
getInterfaces, getSuperClass, iterator
Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.LazyProjection
accept, equals, findBindingOf, getActualName, getComponentType, getDeclaredFields, getDeclaredMethods, getLowerBounds, getOwnerType, getRecordComponents, getSort, getStackSize, getSymbol, getTypeArguments, getTypeName, getTypeVariableSource, getUpperBounds, hashCode, isArray, isPrimitive, isRecord, represents, toString
Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.AbstractBase
asGenericType, asRawType, getModifiers
Methods 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, isVolatile
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface net.bytebuddy.description.ModifierReviewable
getSyntheticState, isFinal, isSynthetic
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.ForTypeDefinition
getTypeManifestation, isAnnotation, isInterface
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.OfAbstraction
isAbstract
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.OfByteCodeElement
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.OfEnumeration
getEnumerationState, isEnum
-
Field Details
-
type
The type of which an interface type is represented. -
index
private final int indexThe index of the generic interface type that is represented. -
erasure
The erasures of the represented type's interface types.
-
-
Constructor Details
-
TypeProjection
Creates a new lazy type projection of a generic interface type.- Parameters:
type
- The type of which an interface type is represented.index
- The index of the generic interface type that is represented.erasure
- The erasures of the represented type's interface types.
-
-
Method Details
-
resolve
Description copied from class:TypeDescription.Generic.LazyProjection
Resolves the actual generic type.- Specified by:
resolve
in classTypeDescription.Generic.LazyProjection
- Returns:
- An actual description of the represented generic type.
-
asErasure
Returns the erasure of this type. Wildcard types (TypeDefinition.Sort.WILDCARD
) do not have a well-defined erasure and cause anIllegalStateException
to be thrown.- Returns:
- The erasure of this type.
-
getAnnotationReader
Description copied from class:TypeDescription.Generic.LazyProjection.WithLazyNavigation.OfAnnotatedElement
Returns the current type's annotation reader.- Specified by:
getAnnotationReader
in classTypeDescription.Generic.LazyProjection.WithLazyNavigation.OfAnnotatedElement
- Returns:
- The current type's annotation reader.
-