protected static class TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.AnnotatedTypeVariable extends TypeDescription.Generic.OfTypeVariable
TypeDescription.Generic.OfTypeVariable.ForLoadedType, TypeDescription.Generic.OfTypeVariable.Symbolic, TypeDescription.Generic.OfTypeVariable.WithAnnotationOverlay
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
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
AnnotationSource.Empty, AnnotationSource.Explicit
Modifier and Type | Field and Description |
---|---|
private java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> |
annotationTokens
The represented annotation tokens.
|
private TypePool |
typePool
The type pool to use.
|
private TypeDescription.Generic |
typeVariable
The represented type variable.
|
ANNOTATION, CLASS, OBJECT, UNDEFINED, VOID
RAW_TYPES_PROPERTY
EMPTY_NAME, NO_NAME
EMPTY_MASK
Modifier | Constructor and Description |
---|---|
protected |
AnnotatedTypeVariable(TypePool typePool,
java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens,
TypeDescription.Generic typeVariable)
Creates a new annotated type variable.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
java.lang.String |
getSymbol()
Returns the symbol of this type variable.
|
TypeVariableSource |
getTypeVariableSource()
Returns the source of this type variable.
|
TypeList.Generic |
getUpperBounds()
Returns the upper bounds of this type.
|
accept, asErasure, equals, findBindingOf, getActualName, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getOwnerType, getSort, getStackSize, getSuperClass, getTypeArguments, getTypeName, hashCode, isArray, isPrimitive, iterator, represents, toString
asGenericType, asRawType, getModifiers
getEnumerationState, getFieldManifestation, getFieldPersistence, getMethodManifestation, getMethodStrictness, getOwnership, getParameterManifestation, getProvisioningState, getSynchronizationState, getSyntheticState, getTypeManifestation, getVisibility, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTypeManifestation, isAnnotation, isInterface
isAbstract
getEnumerationState, isEnum
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
getSyntheticState, isFinal, isSynthetic
private final TypePool typePool
private final java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens
private final TypeDescription.Generic typeVariable
protected AnnotatedTypeVariable(TypePool typePool, java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens, TypeDescription.Generic typeVariable)
typePool
- The type pool to use.annotationTokens
- The represented annotation tokens.typeVariable
- The represented type variable.public TypeList.Generic getUpperBounds()
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 getTypeVariableSource()
Sort#VARIABLE
. For other types, this method
throws an IllegalStateException
.public java.lang.String getSymbol()
Sort#VARIABLE
, Sort#VARIABLE_SYMBOLIC
). For other types, this method
throws an IllegalStateException
.public AnnotationList getDeclaredAnnotations()