public static class TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType extends Object implements TypePool.Default.LazyTypeDescription.GenericTypeToken
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.LazyParameterizedType
A generic type description that represents a parameterized type without an enclosing generic owner type.
|
static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested
A generic type token to describe a parameterized type description with a generic owner type.
|
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForRawType, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard, TypePool.Default.LazyTypeDescription.GenericTypeToken.LazyTokenList, TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable, TypePool.Default.LazyTypeDescription.GenericTypeToken.ResolutionCOMPONENT_TYPE_PATH, EMPTY_TYPE_PATH, INDEXED_TYPE_DELIMITER, INNER_CLASS_PATH, WILDCARD_TYPE_PATH| Constructor and Description |
|---|
ForParameterizedType(String name,
List<TypePool.Default.LazyTypeDescription.GenericTypeToken> parameterTypeTokens)
Creates a type token that represents a parameterized type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getTypePathPrefix()
Returns the type path prefix that needs to be appended to the existing type path before any further navigation on the parameterized
type.
|
int |
hashCode() |
boolean |
isPrimaryBound(TypePool typePool)
Determines if a generic type tokens represents a primary bound of a type variable.
|
TypeDescription.Generic |
toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens)
Transforms this token into a generic type representation.
|
String |
toString() |
public ForParameterizedType(String name, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> parameterTypeTokens)
name - The name of the parameterized type's erasure.parameterTypeTokens - A list of tokens that represent the parameters of the represented type.public TypeDescription.Generic toGenericType(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens)
TypePool.Default.LazyTypeDescription.GenericTypeTokentoGenericType in interface TypePool.Default.LazyTypeDescription.GenericTypeTokentypePool - The type pool to be used for locating non-generic type descriptions.typeVariableSource - The type variable source.typePath - The type path of the resolved generic type.annotationTokens - A mapping of the type's annotation tokens by their type path.public boolean isPrimaryBound(TypePool typePool)
TypePool.Default.LazyTypeDescription.GenericTypeTokenSort#NON_GENERIC,
Sort#PARAMETERIZED or Sort#VARIABLE.isPrimaryBound in interface TypePool.Default.LazyTypeDescription.GenericTypeTokentypePool - The type pool to use.true if this token represents a primary bound.public String getTypePathPrefix()
TypePool.Default.LazyTypeDescription.GenericTypeTokengetTypePathPrefix in interface TypePool.Default.LazyTypeDescription.GenericTypeTokenCopyright © 2014–2016. All rights reserved.