Most visited

Recently visited

Added in API level 1

GenericDeclaration

public interface GenericDeclaration

java.lang.reflect.GenericDeclaration
Known Indirect Subclasses


所有声明类型变量的实体的通用接口。

Summary

Public methods

abstract TypeVariable[]<?> getTypeParameters()

以声明顺序 GenericDeclaration表示由此 GenericDeclaration对象表示的通用声明声明的类型变量的 TypeVariable对象数组。

Public methods

getTypeParameters

Added in API level 1
TypeVariable[]<?> getTypeParameters ()

以声明顺序GenericDeclaration表示由此GenericDeclaration对象表示的通用声明声明的类型变量的TypeVariable对象数组。 如果基础泛型声明声明没有类型变量,则返回长度为0的数组。

Returns
TypeVariable[]<?> an array of TypeVariable objects that represent the type variables declared by this generic declaration
Throws
GenericSignatureFormatError if the generic signature of this generic declaration does not conform to the format specified in The Java™ Virtual Machine Specification

Hooray!