Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal
java.lang.Object
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal
- All Implemented Interfaces:
TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable
@Enhance
protected static class TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal
extends Object
implements TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable
A generic type token that represent a formal type variable, i.e. a type variable including its upper bounds.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A type description that represents a type variable with bounds that are resolved lazily. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<TypePool.Default.LazyTypeDescription.GenericTypeToken> A list of tokens that represent this type variable's upper bounds.private final String
This type variable's nominal symbol. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Formal
(String symbol, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> boundTypeTokens) Creates generic type token that represent a formal type variable. -
Method Summary
Modifier and TypeMethodDescriptiontoGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> boundaryAnnotationTokens) Transforms this token into a generic type representation.
-
Field Details
-
symbol
This type variable's nominal symbol. -
boundTypeTokens
A list of tokens that represent this type variable's upper bounds.
-
-
Constructor Details
-
Formal
protected Formal(String symbol, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> boundTypeTokens) Creates generic type token that represent a formal type variable.- Parameters:
symbol
- This type variable's nominal symbol.boundTypeTokens
- A list of tokens that represent this type variable's upper bounds.
-
-
Method Details
-
toGenericType
public TypeDescription.Generic toGenericType(TypePool typePool, TypeVariableSource typeVariableSource, @MaybeNull Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, @MaybeNull Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> boundaryAnnotationTokens) Transforms this token into a generic type representation.- Specified by:
toGenericType
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable
- Parameters:
typePool
- The type pool to be used for locating non-generic type descriptions.typeVariableSource
- The type variable source.annotationTokens
- A mapping of the type variables' type annotations.boundaryAnnotationTokens
- A mapping of the type variables' bounds' type annotation by their bound index.- Returns:
- A generic type representation of this formal type variable.
-