protected static class TypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray.LazyGenericArray extends TypeDescription.Generic.OfGenericArray
TypeDescription.Generic.OfGenericArray.ForLoadedType, TypeDescription.Generic.OfGenericArray.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
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> |
annotationTokens
This type's type annotations.
|
private TypePool.Default.LazyTypeDescription.GenericTypeToken |
componentTypeToken
A tokenized representation of this generic arrays's component type.
|
private java.lang.String |
typePath
This type's type path.
|
private TypePool |
typePool
The type pool to use.
|
private TypeVariableSource |
typeVariableSource
The type variable source for locating type variables.
|
ANNOTATION, CLASS, OBJECT, UNDEFINED, VOID
RAW_TYPES_PROPERTY
EMPTY_NAME, NO_NAME
EMPTY_MASK
Modifier | Constructor and Description |
---|---|
protected |
LazyGenericArray(TypePool typePool,
TypeVariableSource typeVariableSource,
java.lang.String typePath,
java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
TypePool.Default.LazyTypeDescription.GenericTypeToken componentTypeToken)
Creates a new lazy generic array.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription.Generic |
getComponentType()
Returns the component type of this type.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
accept, asErasure, equals, findBindingOf, getActualName, getDeclaredFields, getDeclaredMethods, getInterfaces, getLowerBounds, getOwnerType, getSort, getStackSize, getSuperClass, getSymbol, getTypeArguments, getTypeName, getTypeVariableSource, getUpperBounds, hashCode, isArray, isPrimitive, iterator, toString
asGenericType, asRawType, getModifiers, represents
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
private final TypePool typePool
private final TypeVariableSource typeVariableSource
private final java.lang.String typePath
private final java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens
private final TypePool.Default.LazyTypeDescription.GenericTypeToken componentTypeToken
protected LazyGenericArray(TypePool typePool, TypeVariableSource typeVariableSource, java.lang.String typePath, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypePool.Default.LazyTypeDescription.GenericTypeToken componentTypeToken)
typePool
- The type pool to use.typeVariableSource
- The type variable source for locating type variables.typePath
- This type's type path.annotationTokens
- This type's type annotations.componentTypeToken
- A tokenized representation of this generic arrays's component type.public TypeDescription.Generic getComponentType()
Returns the component type of this type.
Only non-generic types (TypeDescription.Generic.Sort#NON_GENERIC
) and generic array types
TypeDescription.Generic.Sort#GENERIC_ARRAY
) define a component type. For other
types, an IllegalStateException
is thrown.
null
if this type does not represent an array type.public AnnotationList getDeclaredAnnotations()