public interface GenericDeclaration extends AnnotatedElement
Modifier and Type | Method and Description |
---|---|
TypeVariable<?>[] |
getTypeParameters()
返回一个
TypeVariable 对象的数组,它们以声明顺序表示由此
GenericDeclaration 对象表示的通用声明声明的类型变量。
|
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
TypeVariable<?>[] getTypeParameters()
TypeVariable
对象的数组,它们以声明顺序表示由此GenericDeclaration
对象表示的通用声明声明的类型变量。
如果底层通用声明不声明类型变量,则返回长度为0的数组。
TypeVariable
对象,表示此通用声明声明的类型变量
GenericSignatureFormatError
- 如果此通用声明的通用签名不符合The Java™ Virtual Machine Specification中
指定的格式
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.