Interface AnnotatedType
- All Superinterfaces:
Type
@Deprecated(since="9", forRemoval=true) public interface AnnotatedType extends Type
jdk.javadoc.doclet
. For more information, see the Migration Guide in the documentation for that package.Represents an annotated type. For example:
@NonNull String @Positive int
- Since:
- 1.8
Methods
Modifier and Type | Method | Description |
---|---|---|
AnnotationDesc[] | annotations() | Deprecated, for removal: This API element is subject to removal in a future version. Returns the annotations associated with this type. |
Type | underlyingType() | Deprecated, for removal: This API element is subject to removal in a future version. Returns the underlying type. |
Methods declared in interface com.sun.javadoc.Type
asAnnotatedType, asAnnotationTypeDoc, asClassDoc, asParameterizedType, asTypeVariable, asWildcardType, dimension, getElementType, isPrimitive, qualifiedTypeName, simpleTypeName, toString, typeName
Methods
annotations
AnnotationDesc[] annotations()
Returns the annotations associated with this type.
- Returns:
- the annotations associated with this type
underlyingType
Type underlyingType()
Returns the underlying type.
- Returns:
- the underlying type
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/jdk.javadoc/com/sun/javadoc/AnnotatedType.html