-  
       
- All Superinterfaces:
 -  
         
Type 
@Deprecated(since="9", forRemoval=true) public interface ParameterizedType extends Type
Deprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.表示对泛型类或接口的调用。 例如,给定通用接口List<E>,可能的调用包括:通用内部类List<String>List<T extends Number>List<?>Outer<T>.Inner<S>可能被调用为:Outer<Number>.Inner<String>- 从以下版本开始:
 - 1.5
 
 
-  
        
       
-  
             
方法摘要
所有方法 实例方法 抽象方法 弃用的方法 变量和类型 方法 描述 ClassDocasClassDoc()不推荐使用,要删除:此API元素将在以后的版本中删除。返回声明此类型的泛型类或接口。TypecontainingType()不推荐使用,要删除:此API元素将在以后的版本中删除。返回包含此类型的类型作为成员。Type[]interfaceTypes()不推荐使用,要删除:此API元素将在以后的版本中删除。返回由此参数化类型直接实现或扩展的接口类型。TypesuperclassType()不推荐使用,要删除:此API元素将在以后的版本中删除。返回类型的直接超类型的类类型。Type[]typeArguments()不推荐使用,要删除:此API元素将在以后的版本中删除。返回此类型的实际类型参数。-  
               
声明方法的接口 com.sun.javadoc.Type
asAnnotatedType, asAnnotationTypeDoc, asParameterizedType, asTypeVariable, asWildcardType, dimension, getElementType, isPrimitive, qualifiedTypeName, simpleTypeName, toString, typeName 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
方法详细信息
-  
asClassDoc
ClassDoc asClassDoc()
Deprecated, for removal: This API element is subject to removal in a future version.返回声明此类型的泛型类或接口。- Specified by:
 -  
              
asClassDoc在界面Type - 结果
 - 声明此类型的泛型类或接口。
 
 
-  
typeArguments
Type[] typeArguments()
Deprecated, for removal: This API element is subject to removal in a future version.返回此类型的实际类型参数。 对于嵌套在某些其他泛型类型(例如Outer<T>.Inner<S>)中的泛型类型,仅包括最内层类型的类型参数。- 结果
 - 这种类型的实际类型参数。
 
 
-  
superclassType
Type superclassType()
Deprecated, for removal: This API element is subject to removal in a future version.返回类型的直接超类型的类类型。 这是此类型的声明类的超类,替换了类型参数。如果这是接口类型,则返回null。例如,如果此参数化类型为
java.util.ArrayList<String>,则结果为java.util.AbstractList<String>。- 结果
 - 类型是这个类型的直接超类型。
 
 
-  
interfaceTypes
Type[] interfaceTypes()
Deprecated, for removal: This API element is subject to removal in a future version.返回由此参数化类型直接实现或扩展的接口类型。 这些是由此类型的声明类或接口直接实现或扩展的接口,替换为类型参数。如果没有接口,则返回空数组。例如,由
java.util.Set<String>扩展的接口是java.util.Collection<String>。- 结果
 - 由此参数化类型直接实现或扩展的接口类型。
 
 
-  
containingType
Type containingType()
Deprecated, for removal: This API element is subject to removal in a future version.返回包含此类型的类型作为成员。 返回null是这是顶级类型。例如,包含类型
AnInterface.Nested<Number>是ClassDoc表示AnInterface,包含类型Outer<String>.Inner<Number>是ParameterizedType表示Outer<String>。- 结果
 - 包含此类型作为成员的类型。
 
 
 -  
 
 -