Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized
-
- All Implemented Interfaces:
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution
,TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType
- Enclosing interface:
- TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType
@Enhance public static class TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized extends java.lang.Object implements TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType
An implementation of a tokenized resolution of generic types of aTypeDescription
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw
-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken>
interfaceTypeTokens
The interface type's generic type tokens.private TypePool.Default.LazyTypeDescription.GenericTypeToken
superClassToken
The super type's generic type token.private java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable>
typeVariableTokens
The type variables generic type tokens.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Tokenized(TypePool.Default.LazyTypeDescription.GenericTypeToken superClassToken, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> interfaceTypeTokens, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable> typeVariableTokens)
Creates a new tokenized resolution of aTypeDescription
's generic signatures.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeList.Generic
resolveInterfaceTypes(java.util.List<java.lang.String> interfaceTypeDescriptors, TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType)
Resolves the generic interface types of the represented type.TypeDescription.Generic
resolveSuperClass(java.lang.String superClassDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType)
Resolves the generic super type of the represented type.TypeList.Generic
resolveTypeVariables(TypePool typePool, TypeVariableSource typeVariableSource, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens)
Resolves the type variables of the represented element.
-
-
-
Field Detail
-
superClassToken
private final TypePool.Default.LazyTypeDescription.GenericTypeToken superClassToken
The super type's generic type token.
-
interfaceTypeTokens
private final java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> interfaceTypeTokens
The interface type's generic type tokens.
-
typeVariableTokens
private final java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable> typeVariableTokens
The type variables generic type tokens.
-
-
Constructor Detail
-
Tokenized
protected Tokenized(TypePool.Default.LazyTypeDescription.GenericTypeToken superClassToken, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> interfaceTypeTokens, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable> typeVariableTokens)
Creates a new tokenized resolution of aTypeDescription
's generic signatures.- Parameters:
superClassToken
- The super class's generic type token.interfaceTypeTokens
- The interface type's generic type tokens.typeVariableTokens
- The type variables generic type tokens.
-
-
Method Detail
-
resolveSuperClass
public TypeDescription.Generic resolveSuperClass(java.lang.String superClassDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType)
Resolves the generic super type of the represented type.- Specified by:
resolveSuperClass
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType
- Parameters:
superClassDescriptor
- The descriptor of the raw super type.typePool
- The type pool to be used for locating non-generic type descriptions.annotationTokens
- A mapping of the super type's type annotation tokens.definingType
- The type that defines this super type.- Returns:
- A description of this type's generic super type.
-
resolveInterfaceTypes
public TypeList.Generic resolveInterfaceTypes(java.util.List<java.lang.String> interfaceTypeDescriptors, TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType)
Resolves the generic interface types of the represented type.- Specified by:
resolveInterfaceTypes
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType
- Parameters:
interfaceTypeDescriptors
- The descriptor of the raw interface types.typePool
- The type pool to be used for locating non-generic type descriptions.annotationTokens
- A mapping of the interface types' type annotation tokens by their indices.definingType
- The type that defines these interface type.- Returns:
- A description of this type's generic interface types.
-
resolveTypeVariables
public TypeList.Generic resolveTypeVariables(TypePool typePool, TypeVariableSource typeVariableSource, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens)
Resolves the type variables of the represented element.- Specified by:
resolveTypeVariables
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution
- Parameters:
typePool
- The type pool to be used for locating non-generic type descriptions.typeVariableSource
- The type variable source to use for resolving type variables.annotationTokens
- A mapping of the type variables' type annotation tokens by their indices.boundAnnotationTokens
- A mapping of the type variables' bounds' type annotation tokens by their indices and each type variable's index.- Returns:
- A list describing the resolved generic types.
-
-