Searched refs:getDeclaredAnnotations (Results 1 - 19 of 19) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/reflect/
H A DAnnotatedElement.java43 * {@link #getAnnotations()} and {@link #getDeclaredAnnotations()} can be affected
118 * <tr><td align=right>{@code Annotation[]}</td><td>{@link #getDeclaredAnnotations getDeclaredAnnotations()}
336 * #getDeclaredAnnotations} returning the first annotation whose
350 for (Annotation annotation : getDeclaredAnnotations()) {
385 * #getDeclaredAnnotations()} will get called to determine the
389 * #getDeclaredAnnotations()} a single time and the returned array
392 * #getDeclaredAnnotations()} are assumed to be consistent with the
421 Annotation[] getDeclaredAnnotations(); method in interface:AnnotatedElement
H A DAccessibleObject.java194 return getDeclaredAnnotations();
224 public Annotation[] getDeclaredAnnotations() { method in class:AccessibleObject
H A DConstructor.java380 public Annotation[] getDeclaredAnnotations() { method in class:Constructor
381 return super.getDeclaredAnnotations();
H A DMethod.java489 public Annotation[] getDeclaredAnnotations() { method in class:Method
490 return super.getDeclaredAnnotations();
H A DParameter.java294 public Annotation[] getDeclaredAnnotations() { method in class:Parameter
314 // objects getDeclaredAnnotations is the same as
323 return getDeclaredAnnotations();
H A DField.java878 public native Annotation[] getDeclaredAnnotations(); method in class:Field
H A DExecutable.java555 public Annotation[] getDeclaredAnnotations() { method in class:Executable
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
H A DAnnotationTest.java36 Annotation [] annotations = AnnotatedClass.class.getDeclaredAnnotations();
49 m1.getDeclaredAnnotations()[0].equals(m2
50 .getDeclaredAnnotations()[0]));
75 Annotation a1 = me1.getDeclaredAnnotations()[0];
76 Annotation a2 = me2.getDeclaredAnnotations()[0];
88 Annotation a1 = me1.getDeclaredAnnotations()[0];
89 Annotation a2 = me2.getDeclaredAnnotations()[0];
103 Annotation a1 = AnnotatedClass.class.getDeclaredAnnotations()[0];
121 m1.getDeclaredAnnotations()[0].hashCode());
126 m2.getDeclaredAnnotations()[
[all...]
/libcore/luni/src/test/java/libcore/java/lang/
H A DPackageTest.java32 assertEquals(1, getClass().getPackage().getDeclaredAnnotations().length);
H A DOldClassTest.java356 Annotation [] annotations = PublicTestClass.class.getDeclaredAnnotations();
359 annotations = ExtendTestClass.class.getDeclaredAnnotations();
362 annotations = TestInterface.class.getDeclaredAnnotations();
365 annotations = String.class.getDeclaredAnnotations();
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotatedElements.java48 Annotation[] annotations = element.getDeclaredAnnotations();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
H A DAccessibleObjectTest.java172 Annotation[] annotations = ao.getDeclaredAnnotations();
H A DConstructorTest.java128 Annotation[] annotations = ctor1.getDeclaredAnnotations();
H A DMethodTest.java432 * java.lang.reflect.Method#getDeclaredAnnotations()
436 Annotation[] declaredAnnotations = method.getDeclaredAnnotations();
H A DFieldTest.java1532 Annotation[] annotations = field.getDeclaredAnnotations();
/libcore/ojluni/src/main/java/java/lang/
H A DPackage.java453 public Annotation[] getDeclaredAnnotations() { method in class:Package
454 return getPackageInfo().getDeclaredAnnotations();
H A DClass.java2571 for (Annotation declaredAnnotation : getDeclaredAnnotations()) {
2575 for (Annotation declaredAnnotation : sup.getDeclaredAnnotations()) {
2601 public native Annotation[] getDeclaredAnnotations(); method in class:Class
/libcore/benchmarks/src/benchmarks/regression/
H A DAnnotatedElementBenchmark.java144 ExtendsHasThreeAnnotations.class.getDeclaredAnnotations();
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
H A DAnnotatedElementTestSupport.java133 * <p>Asserts that calling {@link AnnotatedElement#getDeclaredAnnotations()} on the supplied
146 Set<Class<? extends Annotation>> actualTypes = annotationsToTypes(element.getDeclaredAnnotations());

Completed in 403 milliseconds