public static class TypeDescription.Generic.OfWildcardType.ForLoadedType extends TypeDescription.Generic.OfWildcardType
Modifier and Type | Class and Description |
---|---|
protected static class |
TypeDescription.Generic.OfWildcardType.ForLoadedType.WildcardLowerBoundTypeList
A type list representing an upper-bound type variable's bound types.
|
protected static class |
TypeDescription.Generic.OfWildcardType.ForLoadedType.WildcardUpperBoundTypeList
A type list representing an upper-bound type variable's bound types.
|
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.WithOptionalName, NamedElement.WithRuntimeName
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
AnnotationSource.Empty, AnnotationSource.Explicit
SYMBOL
ANNOTATION, CLASS, OBJECT, UNDEFINED, VOID
RAW_TYPES_PROPERTY
EMPTY_NAME, NO_NAME
EMPTY_MASK
Modifier | Constructor and Description |
---|---|
|
ForLoadedType(WildcardType wildcardType)
Creates a description of a loaded wildcard.
|
protected |
ForLoadedType(WildcardType wildcardType,
TypeDescription.Generic.AnnotationReader annotationReader)
Creates a description of a loaded wildcard.
|
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
represents(Type type)
Checks if the type described by this instance represents
type . |
accept, asErasure, equals, findBindingOf, getActualName, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getOwnerType, getSort, getStackSize, getSuperClass, getSymbol, getTypeArguments, getTypeName, getTypeVariableSource, hashCode, isArray, isPrimitive, iterator, 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
forEach, spliterator
public ForLoadedType(WildcardType wildcardType)
wildcardType
- The represented loaded wildcard type.protected ForLoadedType(WildcardType wildcardType, TypeDescription.Generic.AnnotationReader annotationReader)
wildcardType
- The represented loaded wildcard type.annotationReader
- The annotation reader to query for the wildcard type's 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()
AnnotationSource
public boolean represents(Type type)
TypeDefinition
type
.represents
in interface TypeDefinition
represents
in class TypeDescription.Generic.OfWildcardType
type
- The type of interest.true
if the type described by this instance represents type
.Copyright © 2014–2018. All rights reserved.