-  
       
- All Superinterfaces:
 -  
         
AnnotatedElement,AnnotatedType 
public interface AnnotatedParameterizedType extends AnnotatedType
AnnotatedParameterizedType表示参数化类型的潜在注释用法,其类型参数本身可以表示类型的注释用法。- 从以下版本开始:
 - 1.8
 
 
-  
        
       
-  
             
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 AnnotatedType[]getAnnotatedActualTypeArguments()返回此参数化类型的可能带注释的实际类型参数。AnnotatedTypegetAnnotatedOwnerType()如果此类型表示嵌套类型,则返回此类型所属的潜在注释类型。-  
               
声明方法的接口 java.lang.reflect.AnnotatedElement
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent 
-  
               
声明方法的接口 java.lang.reflect.AnnotatedType
getType 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
方法详细信息
-  
getAnnotatedActualTypeArguments
AnnotatedType[] getAnnotatedActualTypeArguments()
返回此参数化类型的可能带注释的实际类型参数。- 结果
 - 此参数化类型的潜在注释实际类型参数
 - 另请参见:
 -  
              
ParameterizedType.getActualTypeArguments() 
 
-  
getAnnotatedOwnerType
AnnotatedType getAnnotatedOwnerType()
如果此类型表示嵌套类型,则返回此类型所属的潜在注释类型。 例如,如果此类型为@TA O<T>.I<S>,则返回@TA O<T>.I<S>的表示@TA O<T>。如果此
AnnotatedType表示顶级类型,本地或匿名类,或基本类型或void,则返回null。- Specified by:
 -  
              
getAnnotatedOwnerType在界面AnnotatedType - 结果
 -  
              
AnnotatedType对象,表示此类型所属的潜在注释类型,或null - 异常
 -  
              
TypeNotPresentException- 如果所有者类型引用不存在的类型声明 -  
              
MalformedParameterizedTypeException- 如果所有者类型引用无法因任何原因而实例化的参数化类型 - 从以下版本开始:
 - 9
 
 
 -  
 
 -