@HashCodeAndEqualsPlugin.Enhance protected static class TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal extends java.lang.Object implements TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable
Modifier and Type | Class and 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.
|
Modifier and Type | Field and 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.
|
Modifier | Constructor and 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.
|
Modifier and Type | Method and 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.
|
private final java.lang.String symbol
private final java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> boundTypeTokens
protected Formal(java.lang.String symbol, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> boundTypeTokens)
symbol
- This type variable's nominal symbol.boundTypeTokens
- A list of tokens that represent this type variable's upper bounds.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)
toGenericType
in interface TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable
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.