protected static class TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.LazyTypeVariable extends TypeDescription.Generic.OfTypeVariable
Modifier and Type | Class and Description |
---|---|
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.LazyTypeVariable.LazyBoundTokenList
A list representing a formal type variable's bounds.
|
TypeDescription.Generic.OfTypeVariable.ForLoadedType, TypeDescription.Generic.OfTypeVariable.Symbolic
TypeDescription.Generic.AbstractBase, TypeDescription.Generic.AnnotationReader, TypeDescription.Generic.Builder, TypeDescription.Generic.LazyProjection, TypeDescription.Generic.OfGenericArray, TypeDescription.Generic.OfNonGenericType, TypeDescription.Generic.OfParameterizedType, TypeDescription.Generic.OfTypeVariable, TypeDescription.Generic.OfWildcardType, TypeDescription.Generic.Visitor<T>
TypeDefinition.Sort, TypeDefinition.SuperClassIterator
NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
ANNOTATION, OBJECT, UNDEFINED, VOID
EMPTY_NAME, NO_NAME
Modifier | Constructor and Description |
---|---|
protected |
LazyTypeVariable(TypePool typePool,
TypeVariableSource typeVariableSource,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> boundaryAnnotationTokens,
String symbol,
List<TypePool.Default.LazyTypeDescription.GenericTypeToken> boundTypeTokens)
Creates a lazy type description of a type variables.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
String |
getSymbol()
Returns the symbol of this type variable.
|
TypeList.Generic |
getUpperBounds()
Returns the upper bounds of this type.
|
TypeVariableSource |
getVariableSource()
Returns the source of this type variable.
|
accept, asErasure, equals, getActualName, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getOwnerType, getSort, getStackSize, getSuperClass, getTypeArguments, getTypeName, hashCode, isArray, isPrimitive, iterator, represents, toString
asGenericType, asRawType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected LazyTypeVariable(TypePool typePool, TypeVariableSource typeVariableSource, Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> boundaryAnnotationTokens, String symbol, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> boundTypeTokens)
typePool
- The type pool to use for locating type descriptions.typeVariableSource
- The type variable source to use for locating type variables.annotationTokens
- The type variable's type annotation tokens.boundaryAnnotationTokens
- A mapping of the type variable bounds' type annotation tokens by their indices.symbol
- The type variable's symbol.boundTypeTokens
- Tokenized representations of the type variables bound types.public TypeList.Generic getUpperBounds()
TypeDescription.Generic
Returns the upper bounds of this type. Any type with a well-defined upper bound is bound by at least one type. If no such
type is defined, the bound is implicitly Object
.
Only non-symbolic type variables (TypeDefinition.Sort.VARIABLE
, and wildcard types
(TypeDefinition.Sort.WILDCARD
) have well-defined upper bounds. For other
types, an IllegalStateException
is thrown.
public TypeVariableSource getVariableSource()
TypeDescription.Generic
Sort#VARIABLE
. For other types, this method
throws an IllegalStateException
.public String getSymbol()
TypeDescription.Generic
Sort#VARIABLE
, Sort#VARIABLE_SYMBOLIC
). For other types, this method
throws an IllegalStateException
.public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
Copyright © 2014–2016. All rights reserved.