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 java.lang.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 Classes Modifier and Type Class Description protected static class
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.LazyTypeVariable
A type description that represents a type variable with bounds that are resolved lazily.
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken>
boundTypeTokens
A list of tokens that represent this type variable's upper bounds.private java.lang.String
symbol
This type variable's nominal symbol.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Formal(java.lang.String symbol, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> boundTypeTokens)
Creates generic type token that represent a formal type variable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescription.Generic
toGenericType(TypePool typePool, TypeVariableSource typeVariableSource, 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.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> boundaryAnnotationTokens)
Transforms this token into a generic type representation.
-
-
-
Field Detail
-
symbol
private final java.lang.String symbol
This type variable's nominal symbol.
-
boundTypeTokens
private final java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> boundTypeTokens
A list of tokens that represent this type variable's upper bounds.
-
-
Constructor Detail
-
Formal
protected Formal(java.lang.String symbol, java.util.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 Detail
-
toGenericType
public TypeDescription.Generic toGenericType(TypePool typePool, TypeVariableSource typeVariableSource, 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.String,java.util.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.
-
-