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

/libcore/ojluni/src/main/java/java/lang/reflect/
H A DAnnotatedElement.java106 * <tr><td align=right>{@code T}</td><td>{@link #getAnnotation(Class) getAnnotation(Class&lt;T&gt;)}
239 * {@code getAnnotation(annotationClass) != null}
252 return getAnnotation(annotationClass) != null;
267 <T extends Annotation> T getAnnotation(Class<T> annotationClass); method in interface:AnnotatedElement
289 * The difference between this method and {@link #getAnnotation(Class)}
H A DAccessibleObject.java167 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { method in class:AccessibleObject
205 // getAnnotation.
206 return getAnnotation(annotationClass);
H A DConstructor.java372 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { method in class:Constructor
373 return super.getAnnotation(annotationClass);
H A DMethod.java481 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { method in class:Method
482 return super.getAnnotation(annotationClass);
H A DParameter.java272 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { method in class:Parameter
304 // getAnnotation.
305 return getAnnotation(annotationClass);
H A DField.java845 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { method in class:Field
H A DExecutable.java533 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { method in class:Executable
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
H A DAnnotationsTest.java98 RetentionAnnotations.class.getAnnotation(ClassRetentionAnnotation.class);
104 RetentionAnnotations.class.getAnnotation(ClassRetentionAnnotation.class);
109 assertNotNull(RetentionAnnotations.class.getAnnotation(RuntimeRetentionAnnotation.class));
110 assertNull(RetentionAnnotations.class.getAnnotation(SourceRetentionAnnotation.class));
H A DAnnotatedElementTestSupport.java100 * {@link AnnotatedElement#getAnnotation(Class)} works as expected.
103 * {@link AnnotatedElement#getAnnotation(Class)} work correctly with a {@code null} argument.
111 // getAnnotations() should be consistent with isAnnotationPresent() and getAnnotation()
124 element.getAnnotation(null);
141 * {@link AnnotatedElement#getAnnotation(Class)} work correctly with a {@code null} argument.
176 assertNotNull(element.getAnnotation(annotation));
179 assertNull(element.getAnnotation(annotation));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/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/benchmarks/src/benchmarks/regression/
H A DAnnotatedElementBenchmark.java67 type.getAnnotation(Marker.class);
73 field.getAnnotation(Marker.class);
79 method.getAnnotation(Marker.class);
/libcore/test-rules/src/main/java/libcore/junit/junit3/
H A DTestCaseWithRules.java88 public <T extends Annotation> T getAnnotation(Class<T> annotationType) {
/libcore/test-rules/src/main/java/libcore/junit/util/
H A DResourceLeakageDetector.java137 if (description.getAnnotation(DisableResourceLeakageDetection.class) != null) {
/libcore/ojluni/src/main/java/java/lang/
H A DPackage.java402 public <A extends Annotation> A getAnnotation(Class<A> annotationClass) { method in class:Package
403 return getPackageInfo().getAnnotation(annotationClass);
H A DClass.java2476 public <A extends Annotation> A getAnnotation(Class<A> annotationClass) { method in class:Class
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldClassTest.java346 TestAnnotation target = PublicTestClass.class.getAnnotation(TestAnnotation.class);
349 assertNull(PublicTestClass.class.getAnnotation(Deprecated.class));
351 Deprecated target2 = ExtendTestClass.class.getAnnotation(Deprecated.class);

Completed in 3003 milliseconds