public static class TypePool.LazyTypeDescription.GenericTypeToken.ForTypeVariable extends Object implements TypePool.LazyTypeDescription.GenericTypeToken
Modifier and Type | Class and Description |
---|---|
static class |
TypePool.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal
A generic type token that represent a formal type variable, i.e.
|
TypePool.LazyTypeDescription.GenericTypeToken.ForGenericArray, TypePool.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard, TypePool.LazyTypeDescription.GenericTypeToken.ForParameterizedType, TypePool.LazyTypeDescription.GenericTypeToken.ForPrimitiveType, TypePool.LazyTypeDescription.GenericTypeToken.ForRawType, TypePool.LazyTypeDescription.GenericTypeToken.ForTypeVariable, TypePool.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard, TypePool.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard, TypePool.LazyTypeDescription.GenericTypeToken.Resolution
Constructor and Description |
---|
ForTypeVariable(String symbol)
Creates a generic type token that represents a type variable.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
GenericTypeDescription.Sort |
getSort()
Returns the sort of the generic type this token represents.
|
int |
hashCode() |
GenericTypeDescription |
toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource)
Transforms this token into a generic type reprsentation.
|
String |
toString() |
public ForTypeVariable(String symbol)
symbol
- This type variable's nominal symbol.public GenericTypeDescription.Sort getSort()
TypePool.LazyTypeDescription.GenericTypeToken
getSort
in interface TypePool.LazyTypeDescription.GenericTypeToken
public GenericTypeDescription toGenericType(TypePool typePool, TypeVariableSource typeVariableSource)
TypePool.LazyTypeDescription.GenericTypeToken
toGenericType
in interface TypePool.LazyTypeDescription.GenericTypeToken
typePool
- The type pool to be used for locating non-generic type descriptions.typeVariableSource
- The type variable source.Copyright © 2014–2015. All rights reserved.