Searched refs:getAnnotation (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/main/java/java/lang/reflect/
H A DAnnotatedElement.java40 <T extends Annotation> T getAnnotation(Class<T> annotationType); method in interface:AnnotatedElement
H A DMethod.java271 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { method in class:Method
275 return getAnnotation(declaringClass, slot, annotationType);
277 static native <A extends Annotation> A getAnnotation( method in class:Method
H A DConstructor.java206 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { method in class:Constructor
210 return Method.getAnnotation(declaringClass, slot, annotationType);
H A DField.java208 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { method in class:Field
212 return getAnnotation(declaringClass, slot, annotationType);
214 private static native <A extends Annotation> A getAnnotation( method in class:Field
H A DAccessibleObject.java141 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { method in class:AccessibleObject
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DAnnotationsTest.java97 // getAnnotations() should be consistent with isAnnotationPresent() and getAnnotation()
109 element.getAnnotation(null);
126 assertNotNull(element.getAnnotation(annotation));
129 assertNull(element.getAnnotation(annotation));
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DAccessibleObjectTest.java139 ao.getAnnotation(null);
147 InheritedRuntime ir = ao.getAnnotation(InheritedRuntime.class);
151 AnnotationRuntime0 rt0 = ao.getAnnotation(AnnotationRuntime0.class);
/libcore/luni/src/main/java/java/lang/
H A DPackage.java82 * @see java.lang.reflect.AnnotatedElement#getAnnotation(java.lang.Class)
85 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { method in class:Package
118 return getAnnotation(annotationType) != null;
H A DClass.java255 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { method in class:Class
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldClassTest.java351 TestAnnotation target = PublicTestClass.class.getAnnotation(TestAnnotation.class);
354 assertNull(PublicTestClass.class.getAnnotation(Deprecated.class));
356 Deprecated target2 = ExtendTestClass.class.getAnnotation(Deprecated.class);

Completed in 930 milliseconds