-
- 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.Represents an invocation of a generic class or interface. For example, given the generic interfaceList<E>
, possible invocations include:List<String>
List<T extends Number>
List<?>
Outer<T>.Inner<S>
might be invoked as:Outer<Number>.Inner<String>
- Since:
- 1.5
-
-
Method Summary
Modifier and Type Method Description ClassDoc
asClassDoc()
Deprecated, for removal: This API element is subject to removal in a future version.Return the generic class or interface that declared this type.Type
containingType()
Deprecated, for removal: This API element is subject to removal in a future version.Return the type that contains this type as a member.Type[]
interfaceTypes()
Deprecated, for removal: This API element is subject to removal in a future version.Return the interface types directly implemented by or extended by this parameterized type.Type
superclassType()
Deprecated, for removal: This API element is subject to removal in a future version.Return the class type that is a direct supertype of this one.Type[]
typeArguments()
Deprecated, for removal: This API element is subject to removal in a future version.Return the actual type arguments of this type.-
Methods declared in interface com.sun.javadoc.Type
asAnnotatedType, asAnnotationTypeDoc, asParameterizedType, asTypeVariable, asWildcardType, dimension, getElementType, isPrimitive, qualifiedTypeName, simpleTypeName, toString, typeName
-
-
-
-
Method Detail
-
asClassDoc
ClassDoc asClassDoc()
Deprecated, for removal: This API element is subject to removal in a future version.Return the generic class or interface that declared this type.- Specified by:
asClassDoc
in interfaceType
- Returns:
- the generic class or interface that declared this type.
-
typeArguments
Type[] typeArguments()
Deprecated, for removal: This API element is subject to removal in a future version.Return the actual type arguments of this type. For a generic type that is nested within some other generic type (such asOuter<T>.Inner<S>
), only the type arguments of the innermost type are included.- Returns:
- the actual type arguments of this type.
-
superclassType
Type superclassType()
Deprecated, for removal: This API element is subject to removal in a future version.Return the class type that is a direct supertype of this one. This is the superclass of this type's declaring class, with type arguments substituted in. Return null if this is an interface type.For example, if this parameterized type is
java.util.ArrayList<String>
, the result will bejava.util.AbstractList<String>
.- Returns:
- the class type that is a direct supertype of this one.
-
interfaceTypes
Type[] interfaceTypes()
Deprecated, for removal: This API element is subject to removal in a future version.Return the interface types directly implemented by or extended by this parameterized type. These are the interfaces directly implemented or extended by this type's declaring class or interface, with type arguments substituted in. Return an empty array if there are no interfaces.For example, the interface extended by
java.util.Set<String>
isjava.util.Collection<String>
.- Returns:
- the interface types directly implemented by or extended by this parameterized type.
-
containingType
Type containingType()
Deprecated, for removal: This API element is subject to removal in a future version.Return the type that contains this type as a member. Return null is this is a top-level type.For example, the containing type of
AnInterface.Nested<Number>
is theClassDoc
representingAnInterface
, and the containing type ofOuter<String>.Inner<Number>
is theParameterizedType
representingOuter<String>
.- Returns:
- the type that contains this type as a member.
-
-