/libcore/luni/src/main/java/java/lang/annotation/ |
H A D | IncompleteAnnotationException.java | 31 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 D | Annotation.java | 35 Class<? extends Annotation> annotationType(); method in interface:Annotation
|
/libcore/luni/src/main/java/java/lang/reflect/ |
H A D | AnnotatedElement.java | 34 * @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 D | AccessibleObject.java | 87 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 100 @Override public <T extends Annotation> T getAnnotation(Class<T> annotationType) { argument
|
H A D | Constructor.java | 189 @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 D | Method.java | 249 @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 D | AbstractMethod.java | 202 @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);
|
H A D | Field.java | 248 @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);
|
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | AnnotationFactory.java | 58 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 D | AnnotationAccess.java | 67 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/luni/src/main/java/java/lang/ |
H A D | Package.java | 82 * @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/dex/src/main/java/com/android/dex/ |
H A D | EncodedValueReader.java | 47 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 D | Class.java | 358 @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);
|