public static class GenericTypeDescription.ForGenericArray.Latent extends GenericTypeDescription.ForGenericArray
GenericTypeDescription.ForGenericArray.Latent, GenericTypeDescription.ForGenericArray.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| Modifier | Constructor and Description |
|---|---|
protected |
Latent(GenericTypeDescription componentType,
int arity)
Creates a latent representation of a generic array type.
|
| Modifier and Type | Method and Description |
|---|---|
GenericTypeDescription |
getComponentType()
Returns the component type of this type.
|
static GenericTypeDescription |
of(GenericTypeDescription componentType,
int arity)
Returns a description of the given component type.
|
accept, asErasure, equals, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getOwnerType, getParameters, getSort, getSourceCodeName, getStackSize, getSuperType, getSymbol, getTypeName, getUpperBounds, getVariableSource, hashCode, isArray, isPrimitive, iterator, represents, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected Latent(GenericTypeDescription componentType, int arity)
componentType - The component type.arity - The arity of this array.public static GenericTypeDescription of(GenericTypeDescription componentType, int arity)
componentType - The component type of the array type to create.arity - The arity of the generic array to create.public GenericTypeDescription getComponentType()
GenericTypeDescriptionReturns the component type of this type.
Only non-generic types (GenericTypeDescription.Sort.NON_GENERIC) and generic array types
GenericTypeDescription.Sort.GENERIC_ARRAY) define a component type. For other
types, an IllegalStateException is thrown.
null if this type does not represent an array type.Copyright © 2014–2015. All rights reserved.