Added in API level 1
GenericArrayType
interface GenericArrayType : Type
java.lang.reflect.GenericArrayType |
GenericArrayType
represents an array type whose component type is either a parameterized type or a type variable.
Summary
Public methods | |
---|---|
abstract Type |
Returns a |
Inherited functions | |
---|---|
Public methods
getGenericComponentType
Added in API level 1
abstract fun getGenericComponentType(): Type
Returns a Type
object representing the component type of this array. This method creates the component type of the array. See the declaration of for the semantics of the creation process for parameterized types and see TypeVariable
for the creation process for type variables.
Return | |
---|---|
Type |
a Type object representing the component type of this array |
Exceptions | |
---|---|
java.lang.TypeNotPresentException |
if the underlying array type's component type refers to a non-existent type declaration |
java.lang.reflect.MalformedParameterizedTypeException |
if the underlying array type's component type refers to a parameterized type that cannot be instantiated for any reason |