public static class TypeDescription.Generic.OfWildcardType.Latent extends TypeDescription.Generic.OfWildcardType
TypeDescription.Generic.OfWildcardType.ForLoadedType, TypeDescription.Generic.OfWildcardType.Latent
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.WithRuntimeName
SYMBOL
ANNOTATION, OBJECT, UNDEFINED, VOID
EMPTY_NAME, NO_NAME
Modifier | Constructor and Description |
---|---|
protected |
Latent(List<? extends TypeDescription.Generic> upperBounds,
List<? extends TypeDescription.Generic> lowerBounds,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a description of a latent wildcard.
|
Modifier and Type | Method and Description |
---|---|
static TypeDescription.Generic |
boundedAbove(TypeDescription.Generic upperBound,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a wildcard with an upper bound.
|
static TypeDescription.Generic |
boundedBelow(TypeDescription.Generic lowerBound,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a wildcard with a lower bound.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
TypeList.Generic |
getLowerBounds()
Returns the lower bounds of this type.
|
TypeList.Generic |
getUpperBounds()
Returns the upper bounds of this type.
|
static TypeDescription.Generic |
unbounded(List<? extends AnnotationDescription> declaredAnnotations)
Creates an unbounded wildcard.
|
accept, asErasure, equals, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getOwnerType, getSort, getSourceCodeName, getStackSize, getSuperClass, getSymbol, getTypeArguments, getTypeName, getVariableSource, hashCode, isArray, isPrimitive, iterator, represents, toString
asGenericType, asRawType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected Latent(List<? extends TypeDescription.Generic> upperBounds, List<? extends TypeDescription.Generic> lowerBounds, List<? extends AnnotationDescription> declaredAnnotations)
upperBounds
- The wildcard's upper bounds.lowerBounds
- The wildcard's lower bounds.declaredAnnotations
- This type's type annotations.public static TypeDescription.Generic unbounded(List<? extends AnnotationDescription> declaredAnnotations)
Object
type.declaredAnnotations
- This type's type annotations.public static TypeDescription.Generic boundedAbove(TypeDescription.Generic upperBound, List<? extends AnnotationDescription> declaredAnnotations)
upperBound
- The upper bound of the wildcard.declaredAnnotations
- This type's type annotations.public static TypeDescription.Generic boundedBelow(TypeDescription.Generic lowerBound, List<? extends AnnotationDescription> declaredAnnotations)
Object
type.lowerBound
- The lower bound of the wildcard.declaredAnnotations
- This type's type annotations.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 TypeList.Generic getLowerBounds()
TypeDescription.Generic
Returns the lower bounds of this type.
Only wildcard types (Sort#WILDCARD
) define a lower bound. For other
types, an IllegalStateException
is thrown.
public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
Copyright © 2014–2016. All rights reserved.