public static class GenericTypeDescription.ForParameterizedType.OfLoadedType extends GenericTypeDescription.ForParameterizedType
GenericTypeDescription.ForParameterizedType.Latent, GenericTypeDescription.ForParameterizedType.OfLoadedTypeGenericTypeDescription.ForGenericArray, GenericTypeDescription.ForNonGenericType, GenericTypeDescription.ForParameterizedType, GenericTypeDescription.ForTypeVariable, GenericTypeDescription.ForWildcardType, GenericTypeDescription.LazyProjection, GenericTypeDescription.Sort, GenericTypeDescription.SuperTypeIterator, GenericTypeDescription.Visitor<T>NamedElement.WithGenericName, NamedElement.WithRuntimeNameEMPTY_NAME, NO_NAME| Constructor and Description |
|---|
OfLoadedType(ParameterizedType parameterizedType)
Creates a description of the loaded parameterized type.
|
| Modifier and Type | Method and Description |
|---|---|
TypeDescription |
asErasure()
Returns the erasure of this type.
|
GenericTypeDescription |
getOwnerType()
Returns the owner type of this type.
|
GenericTypeList |
getParameters()
Returns the type parameters of this type.
|
accept, equals, getComponentType, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getSort, getSourceCodeName, getStackSize, getSuperType, getSymbol, getTypeName, getUpperBounds, getVariableSource, hashCode, isArray, isPrimitive, iterator, represents, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic OfLoadedType(ParameterizedType parameterizedType)
parameterizedType - The represented parameterized type.public GenericTypeList getParameters()
GenericTypeDescriptionReturns the type parameters of this type.
Parameters are only well-defined for parameterized types
(GenericTypeDescription.Sort.PARAMETERIZED), generic array types
(GenericTypeDescription.Sort.GENERIC_ARRAY) and non-generic types
(GenericTypeDescription.Sort.NON_GENERIC). For non-generic and generic array types,
the returned list is always empty. For all other types, this method throws an IllegalStateException.
public GenericTypeDescription getOwnerType()
GenericTypeDescriptionReturns the owner type of this type.
An owner type is only well-defined for parameterized types
(GenericTypeDescription.Sort.PARAMETERIZED) , generic array types
(GenericTypeDescription.Sort.GENERIC_ARRAY) and non-generic types
(GenericTypeDescription.Sort.NON_GENERIC). Non-generic types and generic array types do
never have an owner type. For all other types, this method throws an IllegalStateException.
null if no such owner type exists.public TypeDescription asErasure()
GenericTypeDescriptionGenericTypeDescription.Sort.WILDCARD)
do not have a well-defined erasure and cause an IllegalStateException to be thrown.Copyright © 2014–2015. All rights reserved.