Home
last modified time | relevance | path

Searched refs:annotations (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DExecutableParameterTest.java17 package libcore.java.lang.reflect.annotations;
27 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationA;
28 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationB;
29 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationC;
30 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationD;
31 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container;
32 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
34 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY;
35 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.annotationsToTypes;
36 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertAnnotationsMa…
[all …]
DPackageTest.java17 package libcore.java.lang.reflect.annotations;
22 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container;
23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
24 import libcore.java.lang.reflect.annotations.multipleannotation.MultipleAnnotation;
25 import libcore.java.lang.reflect.annotations.multipleannotationexplicitsingle.MultipleAnnotationExp…
26 import libcore.java.lang.reflect.annotations.multipleannotationoddity.MultipleAnnotationOddity;
27 import libcore.java.lang.reflect.annotations.noannotation.NoAnnotation;
28 import libcore.java.lang.reflect.annotations.singleannotation.SingleAnnotation;
30 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY;
31 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertGetDeclaredAn…
[all …]
DAnnotatedElementTestSupport.java17 package libcore.java.lang.reflect.annotations;
166 static Set<Class<? extends Annotation>> annotationsToTypes(Annotation[] annotations) { in annotationsToTypes() argument
168 for (Annotation annotation : annotations) { in annotationsToTypes()
228 Annotation[] annotations = annotatedElement.getDeclaredAnnotationsByType(annotationType); in assertGetDeclaredAnnotationsByType() local
229 assertAnnotationsMatch(annotations, expectedAnnotationStrings); in assertGetDeclaredAnnotationsByType()
240 Annotation[] annotations = annotatedElement.getAnnotationsByType(annotationType); in assertGetAnnotationsByType() local
241 assertAnnotationsMatch(annotations, expectedAnnotationStrings); in assertGetAnnotationsByType()
258 static void assertAnnotationsMatch(Annotation[] annotations, in assertAnnotationsMatch() argument
278 String[] actualAnnotationStrings = createAnnotationTestStrings(annotations); in assertAnnotationsMatch()
286 private static String[] createAnnotationTestStrings(Annotation[] annotations) { in createAnnotationTestStrings() argument
[all …]
DConstructorTest.java17 package libcore.java.lang.reflect.annotations;
23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationA;
24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationC;
25 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container;
26 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
28 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY;
29 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.checkAnnotatedEleme…
30 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertGetDeclaredAn…
31 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertIsAnnotationP…
DMethodTest.java17 package libcore.java.lang.reflect.annotations;
23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationB;
24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationC;
25 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container;
26 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
28 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY;
29 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.checkAnnotatedEleme…
30 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertGetDeclaredAn…
31 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertIsAnnotationP…
DFieldTest.java17 package libcore.java.lang.reflect.annotations;
23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationA;
24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationD;
25 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container;
26 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
28 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY;
29 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.checkAnnotatedEleme…
30 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertGetDeclaredAn…
31 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertIsAnnotationP…
DClassTest.java17 package libcore.java.lang.reflect.annotations;
22 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationA;
23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationB;
24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container;
25 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
27 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY;
28 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.checkAnnotatedEleme…
29 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.checkAnnotatedEleme…
30 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertGetDeclaredAn…
31 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertIsAnnotationP…
DAnnotationsTest.java16 package libcore.java.lang.reflect.annotations;
21 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationA;
22 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationB;
DAnnotatedElementParameterTest.java17 package libcore.java.lang.reflect.annotations;
26 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationA;
27 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationB;
28 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationC;
29 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationD;
30 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container;
31 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
33 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY;
34 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertGetDeclaredAn…
35 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertIsAnnotationP…
[all …]
/libcore/ojluni/annotations/
DREADME3 mechanism is used instead of adding the annotations to the main source
9 libcore/ojluni/annotations/sdk:
10 - Contains annotations to be included in the public SDK, for example
11 annotations specifying additional details about method contracts.
13 libcore/ojluni/annotations/sdk/nullability:
14 - Contains annotations to be included in the public SDK specifically
16 will cause the annotations to be validated for correctness and completeness.
19annotations/sdk/nullability/$(dirname ${FILE}) && cp out/soong/.intermediates/libcore/openjdk-sdk-…
20 3. Add nullability annotations to the new files.
25 libcore/ojluni/annotations/mmodule:
[all …]
/libcore/luni/src/main/java/libcore/reflect/
DAnnotatedElements.java48 Annotation[] annotations = element.getDeclaredAnnotations(); in getDirectOrIndirectAnnotationsByType() local
56 for (int i = 0; i < annotations.length; ++i) { in getDirectOrIndirectAnnotationsByType()
57 if (annotationClass.isInstance(annotations[i])) { in getDirectOrIndirectAnnotationsByType()
59 unfoldedAnnotations.add((T)annotations[i]); // Safe, guarded by above check. in getDirectOrIndirectAnnotationsByType()
61 repeatableAnnotationClass.isInstance(annotations[i])) { in getDirectOrIndirectAnnotationsByType()
63 insertAnnotationValues(annotations[i], annotationClass, unfoldedAnnotations); in getDirectOrIndirectAnnotationsByType()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DAccessibleObjectTest.java157 Annotation[] annotations = ao.getAnnotations(); in test_getAnnotations() local
158 assertEquals(2, annotations.length); in test_getAnnotations()
161 ignoreOrder.add(annotations[0].annotationType()); in test_getAnnotations()
162 ignoreOrder.add(annotations[1].annotationType()); in test_getAnnotations()
172 Annotation[] annotations = ao.getDeclaredAnnotations(); in test_getDeclaredAnnotations() local
173 assertEquals(2, annotations.length); in test_getDeclaredAnnotations()
176 ignoreOrder.add(annotations[0].annotationType()); in test_getDeclaredAnnotations()
177 ignoreOrder.add(annotations[1].annotationType()); in test_getDeclaredAnnotations()
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/multipleannotationexplicitsingle/
Dpackage-info.java21 package libcore.java.lang.reflect.annotations.multipleannotationexplicitsingle;
23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container;
24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
DMultipleAnnotationExplicitSingle.java17 package libcore.java.lang.reflect.annotations.multipleannotationexplicitsingle;
19 import libcore.java.lang.reflect.annotations.PackageTest;
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/multipleannotationoddity/
Dpackage-info.java22 package libcore.java.lang.reflect.annotations.multipleannotationoddity;
24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container;
25 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
DMultipleAnnotationOddity.java17 package libcore.java.lang.reflect.annotations.multipleannotationoddity;
19 import libcore.java.lang.reflect.annotations.PackageTest;
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/
DMapTest.java33 import org.testng.annotations.AfterClass;
34 import org.testng.annotations.AfterMethod;
35 import org.testng.annotations.BeforeClass;
36 import org.testng.annotations.BeforeMethod;
37 import org.testng.annotations.Test;
/libcore/
Dnullability_annotated_classes.txt1 # The following classes have nullability annotations directly in their source
3 # with annotations in stub files under ojluni/annotations/sdk/nullability/
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/singleannotation/
DSingleAnnotation.java17 package libcore.java.lang.reflect.annotations.singleannotation;
19 import libcore.java.lang.reflect.annotations.PackageTest;
Dpackage-info.java21 package libcore.java.lang.reflect.annotations.singleannotation;
23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/noannotation/
DNoAnnotation.java17 package libcore.java.lang.reflect.annotations.noannotation;
19 import libcore.java.lang.reflect.annotations.PackageTest;
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/multipleannotation/
DMultipleAnnotation.java16 package libcore.java.lang.reflect.annotations.multipleannotation;
18 import libcore.java.lang.reflect.annotations.PackageTest;
Dpackage-info.java22 package libcore.java.lang.reflect.annotations.multipleannotation;
24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLoggingTestCase.java33 import org.testng.annotations.AfterMethod;
34 import org.testng.annotations.BeforeMethod;
35 import org.testng.annotations.Test;
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLoggingTestCase.java33 import org.testng.annotations.AfterMethod;
34 import org.testng.annotations.BeforeMethod;
35 import org.testng.annotations.Test;

12345678910>>...12