public static class GenericTypeDescription.ForWildcardType.OfLoadedType extends GenericTypeDescription.ForWildcardType
GenericTypeDescription.ForWildcardType.Latent, GenericTypeDescription.ForWildcardType.OfLoadedType
GenericTypeDescription.ForGenericArray, GenericTypeDescription.ForNonGenericType, GenericTypeDescription.ForParameterizedType, GenericTypeDescription.ForTypeVariable, GenericTypeDescription.ForWildcardType, GenericTypeDescription.LazyProjection, GenericTypeDescription.Sort, GenericTypeDescription.SuperTypeIterator, GenericTypeDescription.Visitor<T>
NamedElement.WithGenericName, NamedElement.WithRuntimeName
SYMBOL
EMPTY_NAME
Constructor and Description |
---|
OfLoadedType(WildcardType wildcardType)
Creates a description of a loaded wildcard.
|
Modifier and Type | Method and Description |
---|---|
GenericTypeList |
getLowerBounds()
Returns the lower bounds of this type.
|
GenericTypeList |
getUpperBounds()
Returns the upper bounds of this type.
|
accept, asErasure, equals, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getOwnerType, getParameters, getSort, getSourceCodeName, getStackSize, getSuperType, getSymbol, getTypeName, getVariableSource, hashCode, isArray, isPrimitive, iterator, represents, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public OfLoadedType(WildcardType wildcardType)
wildcardType
- The represented loaded wildcard type.public GenericTypeList getLowerBounds()
GenericTypeDescription
Returns the lower bounds of this type.
Only wildcard types (GenericTypeDescription.Sort.WILDCARD
) define a lower bound. For other
types, an IllegalStateException
is thrown.
public GenericTypeList getUpperBounds()
GenericTypeDescription
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 (GenericTypeDescription.Sort.VARIABLE
,
GenericTypeDescription.Sort.VARIABLE_DETACHED
) and wildcard types
(GenericTypeDescription.Sort.WILDCARD
) have well-defined upper bounds. For other
types, an IllegalStateException
is thrown.
Copyright © 2014–2015. All rights reserved.