protected static interface TypePool.Default.LazyTypeDescription.GenericTypeToken
Modifier and Type | Interface and Description |
---|---|
static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray
A generic type token that represents a generic array.
|
static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard
A generic type token for a wildcard that is bound below.
|
static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType
A generic type token that represents a parameterized type.
|
static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType
A generic type token that represents a primitive type.
|
static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForRawType
A generic type token that represents a non-generic type.
|
static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable
A generic type token that represents a type variable.
|
static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard
A generic type token that represents an unbound wildcard.
|
static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard
A generic type token for a wildcard that is bound above.
|
static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.LazyTokenList
A lazy list of type tokens.
|
static interface |
TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable
Represents a generic type token for a formal type variable.
|
static interface |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution
A resolution of a type's, method's or field's generic types.
|
Modifier and Type | Field and Description |
---|---|
static char |
COMPONENT_TYPE_PATH
Represents a step to a component type within a type path.
|
static String |
EMPTY_TYPE_PATH
Represents an empty type path.
|
static char |
INDEXED_TYPE_DELIMITER
Represents an index type delimiter within a type path.
|
static char |
INNER_CLASS_PATH
Represents a (reversed) step to an inner class within a type path.
|
static char |
WILDCARD_TYPE_PATH
Represents a wildcard type step within a type path.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
static final String EMPTY_TYPE_PATH
static final char COMPONENT_TYPE_PATH
static final char WILDCARD_TYPE_PATH
static final char INNER_CLASS_PATH
static final char INDEXED_TYPE_DELIMITER
TypeDescription.Generic toGenericType(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens)
typePool
- 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.boolean isPrimaryBound(TypePool typePool)
Sort#NON_GENERIC
,
Sort#PARAMETERIZED
or Sort#VARIABLE
.typePool
- The type pool to use.true
if this token represents a primary bound.String getTypePathPrefix()
Copyright © 2014–2024. All rights reserved.