Searched defs:annotation (Results 1 - 25 of 45) sorted by last modified time

12

/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationAccess.java26 import java.lang.annotation.Annotation;
27 import java.lang.annotation.Inherited;
67 public static <A extends java.lang.annotation.Annotation> A getAnnotation(
73 A annotation = getDeclaredAnnotation(c, annotationType);
74 if (annotation != null) {
75 return annotation;
80 annotation = getDeclaredAnnotation(sup, annotationType);
81 if (annotation != null) {
82 return annotation;
92 * apply to subclasses that don't have another annotation o
668 toAnnotationInstance(Class<?> context, Class<A> annotationClass, com.android.dex.Annotation annotation) argument
[all...]
/libcore/luni/src/test/java/libcore/java/lang/annotation/
H A DAnnotationTypeMismatchExceptionTest.java17 package libcore.java.lang.annotation;
22 import java.lang.annotation.AnnotationTypeMismatchException;
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DAnnotationsTest.java19 import java.lang.annotation.Annotation;
20 import java.lang.annotation.Inherited;
21 import java.lang.annotation.Retention;
22 import java.lang.annotation.RetentionPolicy;
117 for (Annotation annotation : annotations) {
118 result.add(annotation.annotationType());
124 Class<? extends Annotation> annotation) {
126 assertNotNull(element.getAnnotation(annotation));
127 assertTrue(element.isAnnotationPresent(annotation));
129 assertNull(element.getAnnotation(annotation));
123 assertPresent(boolean present, AnnotatedElement element, Class<? extends Annotation> annotation) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
H A DAnnotationTest.java18 package org.apache.harmony.annotation.tests.java.lang.annotation;
22 import java.lang.annotation.Annotation;
31 * Test case of java.lang.annotation.Annotation
48 assertFalse("other annotation class type",
136 assertEquals(1, annotations[1].length); // One annotation on the second.
H A DTestAnnotation1.java17 package org.apache.harmony.annotation.tests.java.lang.annotation;
19 import java.lang.annotation.Retention;
20 import java.lang.annotation.RetentionPolicy;
H A DTestAnnotation2.java1 package org.apache.harmony.annotation.tests.java.lang.annotation;
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
H A DTestAnnotation3.java1 package org.apache.harmony.annotation.tests.java.lang.annotation;
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
12 * only primitive type, String, Class, annotation,
H A DTestAnnotation3b.java1 package org.apache.harmony.annotation.tests.java.lang.annotation;
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
12 * only primitive type, String, Class, annotation,
H A DTestAnnotation4.java1 package org.apache.harmony.annotation.tests.java.lang.annotation;
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
H A DTestEnum1.java1 package org.apache.harmony.annotation.tests.java.lang.annotation;
H A DTestEnum1b.java1 package org.apache.harmony.annotation.tests.java.lang.annotation;
/libcore/support/src/test/java/tests/resources/
H A Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ...
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...
/libcore/dalvik/src/main/java/dalvik/annotation/
H A DAndroidOnly.java17 package dalvik.annotation;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
35 * Plain text reason for adding this annotation.
H A DAnnotationDefault.java17 package dalvik.annotation;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
25 * A "system annotation" used to provide the AnnotationDefault attribute.
H A DBrokenTest.java17 package dalvik.annotation;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
34 * Plain text reason for adding this annotation.
H A DEnclosingClass.java17 package dalvik.annotation;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
25 * A "system annotation" used to provide part of the InnerClasses attribute.
H A DEnclosingMethod.java17 package dalvik.annotation;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
25 * A "system annotation" used to provide the EnclosingMethod attribute.
H A DInnerClass.java17 package dalvik.annotation;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
25 * A "system annotation" used to provide part of the InnerClasses attribute.
H A DKnownFailure.java17 package dalvik.annotation;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
36 * Plain text reason for adding this annotation.
H A DMemberClasses.java17 package dalvik.annotation;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
25 * A "system annotation" used to provide the MemberClasses list.
H A DSideEffect.java17 package dalvik.annotation;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
36 * Plain text reason for adding this annotation.
H A DSignature.java17 package dalvik.annotation;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
25 * A "system annotation" used to provide the Signature attribute.
H A DTestLevel.java17 package dalvik.annotation;
H A DTestTarget.java17 package dalvik.annotation;
19 import java.lang.annotation.ElementType;
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 import java.lang.annotation.Target;
25 * Defines an annotation used be used within the TestInfo annotation. It

Completed in 1323 milliseconds

12