< prev index next >
src/java.base/share/classes/java/lang/reflect/AnnotatedElement.java
Print this page
*** 103,116 ****
* </ul>
*
* <p>The table below summarizes which kind of annotation presence
* different methods in this interface examine.
*
! * <table border>
* <caption>Overview of kind of presence detected by different AnnotatedElement methods</caption>
* <tr><th colspan=2></th><th colspan=4>Kind of Presence</th>
* <tr><th colspan=2>Method</th><th>Directly Present</th><th>Indirectly Present</th><th>Present</th><th>Associated</th>
* <tr><td style="text-align:right">{@code T}</td><td>{@link #getAnnotation(Class) getAnnotation(Class<T>)}
* <td></td><td></td><td>X</td><td></td>
* </tr>
* <tr><td style="text-align:right">{@code Annotation[]}</td><td>{@link #getAnnotations getAnnotations()}
* <td></td><td></td><td>X</td><td></td>
--- 103,119 ----
* </ul>
*
* <p>The table below summarizes which kind of annotation presence
* different methods in this interface examine.
*
! * <table class="plain">
* <caption>Overview of kind of presence detected by different AnnotatedElement methods</caption>
+ * <thead>
* <tr><th colspan=2></th><th colspan=4>Kind of Presence</th>
* <tr><th colspan=2>Method</th><th>Directly Present</th><th>Indirectly Present</th><th>Present</th><th>Associated</th>
+ * </thead>
+ * <tbody>
* <tr><td style="text-align:right">{@code T}</td><td>{@link #getAnnotation(Class) getAnnotation(Class<T>)}
* <td></td><td></td><td>X</td><td></td>
* </tr>
* <tr><td style="text-align:right">{@code Annotation[]}</td><td>{@link #getAnnotations getAnnotations()}
* <td></td><td></td><td>X</td><td></td>
*** 125,134 ****
--- 128,138 ----
* <td>X</td><td></td><td></td><td></td>
* </tr>
* <tr><td style="text-align:right">{@code T[]}</td><td>{@link #getDeclaredAnnotationsByType(Class) getDeclaredAnnotationsByType(Class<T>)}
* <td>X</td><td>X</td><td></td><td></td>
* </tr>
+ * </tbody>
* </table>
*
* <p>For an invocation of {@code get[Declared]AnnotationsByType( Class <
* T >)}, the order of annotations which are directly or indirectly
* present on an element <i>E</i> is computed as if indirectly present
< prev index next >