public static class TypeDescription.ArrayProjection extends TypeDescription.AbstractBase
TypeDescription
.TypeDescription.AbstractBase.OfSimpleType, TypeDescription.AbstractBase.RawTypeWrapper
TypeDescription.AbstractBase, TypeDescription.ArrayProjection, TypeDescription.ForLoadedType, TypeDescription.ForPackageDescription, TypeDescription.Latent
GenericTypeDescription.ForGenericArray, GenericTypeDescription.ForNonGenericType, GenericTypeDescription.ForParameterizedType, GenericTypeDescription.ForTypeVariable, GenericTypeDescription.ForWildcardType, GenericTypeDescription.LazyProjection, GenericTypeDescription.Sort, GenericTypeDescription.SuperTypeIterator, GenericTypeDescription.Visitor<T>
TypeVariableSource.Visitor<T>
ByteCodeElement.Accessible, ByteCodeElement.Token<T extends ByteCodeElement.Token<T>>, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>
NamedElement.WithGenericName, NamedElement.WithRuntimeName
ARRAY_INTERFACES, ARRAY_MODIFIERS, CLASS, ENUM, OBJECT, STRING, UNDEFINED, VOID
NON_GENERIC_SIGNATURE
EMPTY_NAME
EMPTY_MASK
Modifier | Constructor and Description |
---|---|
protected |
ArrayProjection(TypeDescription componentType,
int arity)
Crrates a new array projection.
|
Modifier and Type | Method and Description |
---|---|
String |
getCanonicalName()
Returns the canonical internalName of this type.
|
TypeDescription |
getComponentType()
Returns the component type of this type.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
FieldList<FieldDescription.InDefinedShape> |
getDeclaredFields()
Returns a list of field descriptions that are declared by this type.
|
protected GenericTypeList |
getDeclaredInterfaces()
Returns the declared interface types in the form they are declared in the class file.
|
MethodList<MethodDescription.InDefinedShape> |
getDeclaredMethods()
Returns a list of method descriptions that are declared by this type.
|
protected GenericTypeDescription |
getDeclaredSuperType()
Returns the declared super type in the form it is declared in the class file.
|
TypeList |
getDeclaredTypes()
Returns a list of types that are declared by this type excluding anonymous classes.
|
TypeDescription |
getDeclaringType()
Returns the declaring type of this instance.
|
String |
getDescriptor()
Returns the descriptor of this byte code element.
|
MethodDescription |
getEnclosingMethod()
Returns a description of the enclosing method of this type.
|
TypeDescription |
getEnclosingType()
Returns a description of the enclosing type of this type.
|
AnnotationList |
getInheritedAnnotations()
Returns the annotations that this type declares or inherits from super types.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
String |
getName()
Returns the internalName of this byte code element.
|
PackageDescription |
getPackage()
Returns the package internalName of the type described by this instance.
|
String |
getSimpleName()
Returns the simple internalName of this type.
|
StackSize |
getStackSize()
Returns the size of the type described by this instance.
|
GenericTypeList |
getTypeVariables()
Returns the type variables that are declared by this element.
|
boolean |
isAnonymousClass()
Checks if this type description represents an anonymous type.
|
boolean |
isArray()
Checks if the type described by this entity is an array.
|
boolean |
isLocalClass()
Checks if this type description represents a local type.
|
boolean |
isMemberClass()
Checks if this type description represents a member type.
|
boolean |
isPrimitive()
Checks if the type described by this entity is a primitive type.
|
static TypeDescription |
of(TypeDescription componentType,
int arity)
Creates an array projection.
|
accept, accept, asErasure, equals, findVariable, getActualModifiers, getEnclosingSource, getGenericSignature, getInterfaces, getInternalName, getLowerBounds, getOwnerType, getParameters, getSort, getSourceCodeName, getSuperType, getSymbol, getTypeName, getUpperBounds, getVariableSource, hashCode, isAnnotationReturnType, isAnnotationValue, isAnnotationValue, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isConstantPool, isInstance, isInstanceOrWrapper, isPrimitiveWrapper, isSamePackage, isVisibleTo, iterator, represents, toString
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
protected ArrayProjection(TypeDescription componentType, int arity)
componentType
- The base component type of the array which is itself not an array.arity
- The arity of this array.public static TypeDescription of(TypeDescription componentType, int arity)
componentType
- The component type of the array.arity
- The arity of this array.public boolean isArray()
GenericTypeDescription
true
if this type description represents an array.public TypeDescription getComponentType()
GenericTypeDescription
Returns 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.public boolean isPrimitive()
GenericTypeDescription
true
if this type description represents a primitive type.protected GenericTypeDescription getDeclaredSuperType()
TypeDescription.AbstractBase
getDeclaredSuperType
in class TypeDescription.AbstractBase
protected GenericTypeList getDeclaredInterfaces()
TypeDescription.AbstractBase
getDeclaredInterfaces
in class TypeDescription.AbstractBase
public MethodDescription getEnclosingMethod()
TypeDescription
null
if there is no such method.public TypeDescription getEnclosingType()
TypeDescription
null
if there is no such type.public TypeList getDeclaredTypes()
TypeDescription
public String getSimpleName()
TypeDescription
public String getCanonicalName()
TypeDescription
public boolean isAnonymousClass()
TypeDescription
true
if this type description represents an anonymous type.public boolean isLocalClass()
TypeDescription
true
if this type description represents a local type.public boolean isMemberClass()
TypeDescription
true
if this type description represents a member type.public FieldList<FieldDescription.InDefinedShape> getDeclaredFields()
GenericTypeDescription
Returns a list of field descriptions that are declared by this type. For parameterized types, all type variables of these fields are resolved to the values of the type variables.
Only non-generic types (GenericTypeDescription.Sort.NON_GENERIC
) and parameterized types
(GenericTypeDescription.Sort.PARAMETERIZED
) define a super type. For a generic array type,
(GenericTypeDescription.Sort.GENERIC_ARRAY
), an empty list is returned. For other generic
types, an IllegalStateException
is thrown.
public MethodList<MethodDescription.InDefinedShape> getDeclaredMethods()
GenericTypeDescription
Returns a list of method descriptions that are declared by this type. For parameterized types, all type variables used by these methods are resolved to the values of the type variables.
Only non-generic types (GenericTypeDescription.Sort.NON_GENERIC
) and parameterized types
(GenericTypeDescription.Sort.PARAMETERIZED
) define a super type. For a generic array type,
(GenericTypeDescription.Sort.GENERIC_ARRAY
), an empty list is returned. For other
generic types, an IllegalStateException
is thrown.
public StackSize getStackSize()
GenericTypeDescription
GenericTypeDescription.Sort.WILDCARD
do not have a well-defined a stack size and
cause an IllegalStateException
to be thrown.public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
public AnnotationList getInheritedAnnotations()
TypeDescription
getInheritedAnnotations
in interface TypeDescription
getInheritedAnnotations
in class TypeDescription.AbstractBase
public PackageDescription getPackage()
TypeDescription
public String getName()
NamedElement.WithRuntimeName
public String getDescriptor()
ByteCodeElement
public TypeDescription getDeclaringType()
DeclaredByType
null
if no such type exists.public int getModifiers()
ModifierReviewable
public GenericTypeList getTypeVariables()
TypeVariableSource
Copyright © 2014–2015. All rights reserved.