public static class TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal extends 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.
|
Constructor and Description |
---|
Formal(String symbol,
List<TypePool.Default.LazyTypeDescription.GenericTypeToken> boundTypeTokens)
Creates generic type token that represent a formal type variable.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
TypeDescription.Generic |
toGenericType(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.
|
String |
toString() |
public Formal(String symbol, 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, Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> boundaryAnnotationTokens)
TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable
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.Copyright © 2014–2016. All rights reserved.