AnnotationDesc (Java SE 11 & JDK 11 ) (original) (raw)
@Deprecated(since="9",
forRemoval=true)
public interface AnnotationDesc
Deprecated, for removal: This API element is subject to removal in a future version.
Represents an annotation. An annotation associates a value with each element of an annotation type.
Since:
1.5
Nested Class Summary
Nested Classes
Modifier and Type Interface Description static interface AnnotationDesc.ElementValuePair Deprecated, for removal: This API element is subject to removal in a future version. Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods
Modifier and Type Method Description AnnotationTypeDoc annotationType() Deprecated, for removal: This API element is subject to removal in a future version. Returns the annotation type of this annotation. AnnotationDesc.ElementValuePair[] elementValues() Deprecated, for removal: This API element is subject to removal in a future version. Returns this annotation's elements and their values. boolean isSynthesized() Deprecated, for removal: This API element is subject to removal in a future version. Check for the synthesized bit on the annotation. Method Detail
* #### annotationType [AnnotationTypeDoc](AnnotationTypeDoc.html "interface in com.sun.javadoc") annotationType() Deprecated, for removal: This API element is subject to removal in a future version. Returns the annotation type of this annotation. Returns: the annotation type of this annotation. * #### elementValues [AnnotationDesc.ElementValuePair](AnnotationDesc.ElementValuePair.html "interface in com.sun.javadoc")[] elementValues() Deprecated, for removal: This API element is subject to removal in a future version. Returns this annotation's elements and their values. Only those explicitly present in the annotation are included, not those assuming their default values. Returns an empty array if there are none. Returns: this annotation's elements and their values. * #### isSynthesized boolean isSynthesized() Deprecated, for removal: This API element is subject to removal in a future version. Check for the synthesized bit on the annotation. Returns: true if the annotation is synthesized.
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.