Searched refs:annotationType (Results 1 - 21 of 21) sorted by relevance

/libcore/luni/src/main/java/java/lang/annotation/
H A DIncompleteAnnotationException.java31 private Class<? extends Annotation> annotationType; field in class:IncompleteAnnotationException
39 * @param annotationType
44 public IncompleteAnnotationException(Class<? extends Annotation> annotationType, argument
47 annotationType.getName());
48 this.annotationType = annotationType;
57 public Class<? extends Annotation> annotationType() { method in class:IncompleteAnnotationException
58 return annotationType;
H A DAnnotation.java35 Class<? extends Annotation> annotationType(); method in interface:Annotation
/libcore/luni/src/main/java/java/lang/reflect/
H A DAnnotatedElement.java34 * @param annotationType
38 * if {@code annotationType} is {@code null}
40 <T extends Annotation> T getAnnotation(Class<T> annotationType); argument
64 * @param annotationType
68 * if {@code annotationType} is {@code null}
70 boolean isAnnotationPresent(Class<? extends Annotation> annotationType); argument
/libcore/libart/src/main/java/java/lang/reflect/
H A DAccessibleObject.java87 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument
100 @Override public <T extends Annotation> T getAnnotation(Class<T> annotationType) { argument
H A DConstructor.java189 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument
190 if (annotationType == null) {
191 throw new NullPointerException("annotationType == null");
193 return AnnotationAccess.isDeclaredAnnotationPresent(this, annotationType);
196 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument
197 if (annotationType == null) {
198 throw new NullPointerException("annotationType == null");
200 return AnnotationAccess.getDeclaredAnnotation(this, annotationType);
H A DMethod.java249 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument
250 if (annotationType == null) {
251 throw new NullPointerException("annotationType == null");
253 return AnnotationAccess.isDeclaredAnnotationPresent(this, annotationType);
296 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument
297 if (annotationType == null) {
298 throw new NullPointerException("annotationType == null");
300 return AnnotationAccess.getDeclaredAnnotation(this, annotationType);
H A DField.java248 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument
249 if (annotationType == null) {
250 throw new NullPointerException("annotationType == null");
252 return AnnotationAccess.getDeclaredAnnotation(this, annotationType);
255 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument
256 if (annotationType == null) {
257 throw new NullPointerException("annotationType == null");
259 return AnnotationAccess.isDeclaredAnnotationPresent(this, annotationType);
H A DAbstractMethod.java202 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument
203 if (annotationType == null) {
204 throw new NullPointerException("annotationType == null");
206 return AnnotationAccess.isDeclaredAnnotationPresent(this, annotationType);
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationFactory.java58 public static AnnotationMember[] getElementsDescription(Class<? extends Annotation> annotationType) { argument
60 AnnotationMember[] desc = cache.get(annotationType);
65 if (!annotationType.isAnnotation()) {
66 throw new IllegalArgumentException("Type is not annotation: " + annotationType.getName());
68 Method[] declaredMethods = annotationType.getDeclaredMethods();
81 cache.put(annotationType, desc);
88 * @param annotationType the annotation type definition
92 public static <A extends Annotation> A createAnnotation(Class<? extends Annotation> annotationType, argument
94 AnnotationFactory factory = new AnnotationFactory(annotationType, elements);
95 return (A) Proxy.newProxyInstance(annotationType
[all...]
H A DAnnotationAccess.java67 Class<?> c, Class<A> annotationType) {
68 if (annotationType == null) {
69 throw new NullPointerException("annotationType == null");
72 A annotation = getDeclaredAnnotation(c, annotationType);
77 if (isInherited(annotationType)) {
79 annotation = getDeclaredAnnotation(sup, annotationType);
90 * Returns true if {@code annotationType} annotations on the superclass
94 private static boolean isInherited(Class<? extends Annotation> annotationType) { argument
95 return isDeclaredAnnotationPresent(annotationType, Inherited.class);
112 map.put(declaredAnnotation.annotationType(), declaredAnnotatio
66 getAnnotation( Class<?> c, Class<A> annotationType) argument
131 isAnnotationPresent( Class<?> c, Class<? extends Annotation> annotationType) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
H A DIncompleteAnnotationExceptionTest.java55 assertSame("wrong annotation type", clazz, e.annotationType());
/libcore/luni/src/main/java/java/lang/
H A DPackage.java82 * @param annotationType
88 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument
90 if (annotationType.isInstance(annotation)) {
121 * @param annotationType
127 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument
128 return getAnnotation(annotationType) != null;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
H A DAccessibleObjectTest.java161 ignoreOrder.add(annotations[0].annotationType());
162 ignoreOrder.add(annotations[1].annotationType());
176 ignoreOrder.add(annotations[0].annotationType());
177 ignoreOrder.add(annotations[1].annotationType());
H A DConstructorTest.java115 ignoreOrder.add(paramAnnotations[0][0].annotationType());
116 ignoreOrder.add(paramAnnotations[0][1].annotationType());
132 ignoreOrder.add(annotations[0].annotationType());
133 ignoreOrder.add(annotations[1].annotationType());
H A DMethodTest.java412 annotationSet.add(annotations[0][0].annotationType());
413 annotationSet.add(annotations[0][1].annotationType());
423 annotationSet.add(annotations[1][0].annotationType());
440 annotationSet.add(declaredAnnotations[0].annotationType());
441 annotationSet.add(declaredAnnotations[1].annotationType());
H A DFieldTest.java1536 ignoreOrder.add(annotations[0].annotationType());
1537 ignoreOrder.add(annotations[1].annotationType());
/libcore/dex/src/main/java/com/android/dex/
H A DEncodedValueReader.java47 private int annotationType; field in class:EncodedValueReader
107 * int annotationType = getAnnotationType();
117 annotationType = Leb128.readUnsignedLeb128(in);
127 return annotationType;
/libcore/libart/src/main/java/java/lang/
H A DClass.java358 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument
359 return AnnotationAccess.getAnnotation(this, annotationType);
1227 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument
1228 return AnnotationAccess.isAnnotationPresent(this, annotationType);
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DAnnotationsTest.java385 result.add(annotation.annotationType());
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
H A DAnnotationTest.java39 assertEquals(TestAnnotation1.class, anno.annotationType());
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldClassTest.java239 assertEquals(TestAnnotation.class, annotations[0].annotationType());
245 Class<? extends Annotation> type = annotations[i].annotationType();

Completed in 802 milliseconds