-
- All Superinterfaces:
-
AnnotatedElement,AnnotatedType
public interface AnnotatedTypeVariable extends AnnotatedType
AnnotatedTypeVariable表示类型变量的潜在注释用法,其声明可能具有自身表示类型的注释用法的边界。- 从以下版本开始:
- 1.8
-
-
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 AnnotatedType[]getAnnotatedBounds()返回此类型变量的潜在注释边界。AnnotatedTypegetAnnotatedOwnerType()如果此类型表示嵌套类型,则返回此类型所属的潜在注释类型。-
声明方法的接口 java.lang.reflect.AnnotatedElement
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
-
声明方法的接口 java.lang.reflect.AnnotatedType
getType
-
-
-
-
方法详细信息
-
getAnnotatedBounds
AnnotatedType[] getAnnotatedBounds()
返回此类型变量的潜在注释边界。 如果未显式声明绑定,则绑定未注释Object。- 结果
- 此类型变量的潜在注释边界
- 另请参见:
-
TypeVariable.getBounds()
-
getAnnotatedOwnerType
AnnotatedType getAnnotatedOwnerType()
如果此类型表示嵌套类型,则返回此类型所属的潜在注释类型。 例如,如果此类型为@TA O<T>.I<S>,则返回@TA O<T>.I<S>的表示@TA O<T>。返回
null为AnnotatedType这是实例AnnotatedTypeVariable。- Specified by:
-
getAnnotatedOwnerType在界面AnnotatedType - 结果
-
null - 从以下版本开始:
- 9
-
-