public interface GenericArrayType
implements Type
| java.lang.reflect.GenericArrayType |
GenericArrayType表示其组件类型为参数化类型或类型变量的数组类型。
Public methods |
|
|---|---|
abstract Type |
getGenericComponentType() 返回表示此数组的组件类型的 |
Type getGenericComponentType ()
返回表示此数组的组件类型的Type对象。 此方法创建数组的组件类型。 有关参数化类型的创建过程的语义,请参见ParameterizedType的声明,有关类型变量的创建过程,请参见TypeVariable 。
| Returns | |
|---|---|
Type |
a Type object representing the component type of this array |
| Throws | |
|---|---|
TypeNotPresentException |
if the underlying array type's component type refers to a non-existent type declaration |
MalformedParameterizedTypeException |
if the underlying array type's component type refers to a parameterized type that cannot be instantiated for any reason |