Searched refs:getDeclaredAnnotation (Results 1 - 7 of 7) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/reflect/
H A DAnnotatedElement.java115 * <tr><td align=right>{@code T}</td><td>{@link #getDeclaredAnnotation(Class) getDeclaredAnnotation(Class&lt;T&gt;)}
347 default <T extends Annotation> T getDeclaredAnnotation(Class<T> annotationClass) { method in interface:AnnotatedElement
371 * #getDeclaredAnnotation(Class)} is that this method detects if its
380 * #getDeclaredAnnotation(Class)} one or more times to find a
393 * results of calling {@link #getDeclaredAnnotation(Class)}.
H A DAccessibleObject.java202 public <T extends Annotation> T getDeclaredAnnotation(Class<T> annotationClass) { method in class:AccessibleObject
204 // objects getDeclaredAnnotation is the same as
H A DParameter.java301 public <T extends Annotation> T getDeclaredAnnotation(Class<T> annotationClass) { method in class:Parameter
303 // objects getDeclaredAnnotation is the same as
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
H A DAnnotatedElementTestSupport.java138 * that {@link AnnotatedElement#getDeclaredAnnotation(Class)} works as expected.
155 element.getDeclaredAnnotation(null);
187 assertNotNull(element.getDeclaredAnnotation(annotation));
189 assertNull(element.getDeclaredAnnotation(annotation));
209 * Asserts that {@link AnnotatedElement#getDeclaredAnnotation(Class)} returns the expected
215 Annotation annotation = annotatedElement.getDeclaredAnnotation(annotationType);
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotatedElements.java151 Repeatable repeatableAnnotation = annotationClass.getDeclaredAnnotation(Repeatable.class);
/libcore/ojluni/src/main/java/java/lang/
H A DPackage.java437 public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationClass) { method in class:Package
438 return getPackageInfo().getDeclaredAnnotation(annotationClass);
H A DClass.java2479 A annotation = getDeclaredAnnotation(annotationClass);
2486 annotation = sup.getDeclaredAnnotation(annotationClass);
2594 public native <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationClass); method in class:Class

Completed in 82 milliseconds