-
- All Superinterfaces:
Type
@Deprecated public interface TypeVariable extends Type
Deprecated.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 a type variable. For example, the generic interfaceList<E>has a single type variableE. A type variable may have explicit bounds, as inC<R extends Remote>.- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description AnnotationDesc[]annotations()Deprecated.Get the annotations of this program element.Type[]bounds()Deprecated.Return the bounds of this type variable.ProgramElementDocowner()Deprecated.Return the class, interface, method, or constructor within which this type variable is declared.-
Methods declared in interface com.sun.javadoc.Type
asAnnotatedType, asAnnotationTypeDoc, asClassDoc, asParameterizedType, asTypeVariable, asWildcardType, dimension, getElementType, isPrimitive, qualifiedTypeName, simpleTypeName, toString, typeName
-
-
-
-
Method Detail
-
bounds
Type[] bounds()
Deprecated.Return the bounds of this type variable. These are the types given by the extends clause. Return an empty array if there are no explicit bounds.- Returns:
- the bounds of this type variable.
-
owner
ProgramElementDoc owner()
Deprecated.Return the class, interface, method, or constructor within which this type variable is declared.- Returns:
- the class, interface, method, or constructor within which this type variable is declared.
-
annotations
AnnotationDesc[] annotations()
Deprecated.Get the annotations of this program element. Return an empty array if there are none.- Returns:
- the annotations of this program element or an empty array if there are none.
-
-