APIdia Launch Partner
Top Description Methods
java.lang.reflect

public Interface GenericArrayType

extends Type
Known Direct Implementers
sun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl

GenericArrayType represents an array type whose component type is either a parameterized type or a type variable.
Since
1.5
Java Language Specification
10.1 Array Types

Method Summary

Modifier and TypeMethod and Description
public Type

Returns:

a Type object representing the component type of this array
getGenericComponentType
()

Returns a Type object representing the component type of this array.

Inherited from java.lang.reflect.Type:
getTypeName

Method Detail

getGenericComponentTypeback to summary
public Type getGenericComponentType()

Returns a Type object representing the component type of this array. This method creates the component type of the array. See the declaration of ParameterizedType for the semantics of the creation process for parameterized types and see TypeVariable for the creation process for type variables.

Returns:Type

a Type object representing the component type of this array

Exceptions
TypeNotPresentException:
if the underlying array type's component type refers to a non-existent class or interface declaration
MalformedParameterizedTypeException:
if the underlying array type's component type refers to a parameterized type that cannot be instantiated for any reason