/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 | AbstractMethod.java | 171 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 172 if (annotationType == null) { 173 throw new NullPointerException("annotationType == null"); 175 return AnnotationAccess.isDeclaredAnnotationPresent(this, annotationType);
|
H A D | Constructor.java | 193 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 194 if (annotationType == null) { 195 throw new NullPointerException("annotationType == null"); 197 return AnnotationAccess.isDeclaredAnnotationPresent(this, annotationType); 200 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument 201 if (annotationType == null) { 202 throw new NullPointerException("annotationType == null"); 204 return AnnotationAccess.getDeclaredAnnotation(this, annotationType);
|
H A D | Method.java | 250 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 251 if (annotationType == null) { 252 throw new NullPointerException("annotationType == null"); 254 return AnnotationAccess.isDeclaredAnnotationPresent(this, annotationType); 297 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument 298 if (annotationType == null) { 299 throw new NullPointerException("annotationType == null"); 301 return AnnotationAccess.getDeclaredAnnotation(this, annotationType);
|
H A D | Field.java | 238 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument 239 if (annotationType == null) { 240 throw new NullPointerException("annotationType == null"); 242 return AnnotationAccess.getDeclaredAnnotation(this, annotationType); 245 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 246 if (annotationType == null) { 247 throw new NullPointerException("annotationType == null"); 249 return AnnotationAccess.isDeclaredAnnotationPresent(this, annotationType);
|
/libcore/libdvm/src/main/java/java/lang/reflect/ |
H A D | AccessibleObject.java | 128 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 141 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { argument
|
H A D | Constructor.java | 212 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument 213 if (annotationType == null) { 214 throw new NullPointerException("annotationType == null"); 216 return Method.getAnnotation(declaringClass, slot, annotationType); 219 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 220 if (annotationType == null) { 221 throw new NullPointerException("annotationType == null"); 223 return Method.isAnnotationPresent(declaringClass, slot, annotationType);
|
H A D | Method.java | 262 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument 263 if (annotationType == null) { 264 throw new NullPointerException("annotationType == null"); 266 return getAnnotation(declaringClass, slot, annotationType); 269 Class<?> declaringClass, int slot, Class<A> annotationType); 271 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 272 if (annotationType == null) { 273 throw new NullPointerException("annotationType == null"); 275 return isAnnotationPresent(declaringClass, slot, annotationType); 278 Class<?> declaringClass, int slot, Class<? extends Annotation> annotationType); 268 getAnnotation( Class<?> declaringClass, int slot, Class<A> annotationType) argument 277 isAnnotationPresent( Class<?> declaringClass, int slot, Class<? extends Annotation> annotationType) argument [all...] |
H A D | Field.java | 205 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument 206 if (annotationType == null) { 207 throw new NullPointerException("annotationType == null"); 209 return getAnnotation(declaringClass, slot, annotationType); 212 Class<?> declaringClass, int slot, Class<A> annotationType); 214 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 215 if (annotationType == null) { 216 throw new NullPointerException("annotationType == null"); 218 return isAnnotationPresent(declaringClass, slot, annotationType); 221 Class<?> declaringClass, int slot, Class<? extends Annotation> annotationType); 211 getAnnotation( Class<?> declaringClass, int slot, Class<A> annotationType) argument 220 isAnnotationPresent( Class<?> declaringClass, int slot, Class<? extends Annotation> annotationType) argument [all...] |
/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 | 68 Class<?> c, Class<A> annotationType) { 69 if (annotationType == null) { 70 throw new NullPointerException("annotationType == null"); 73 A annotation = getDeclaredAnnotation(c, annotationType); 78 if (isInherited(annotationType)) { 80 annotation = getDeclaredAnnotation(sup, annotationType); 91 * Returns true if {@code annotationType} annotations on the superclass 95 private static boolean isInherited(Class<? extends Annotation> annotationType) { argument 96 return isDeclaredAnnotationPresent(annotationType, Inherited.class); 113 map.put(declaredAnnotation.annotationType(), declaredAnnotatio 67 getAnnotation( Class<?> c, Class<A> annotationType) argument 132 isAnnotationPresent( Class<?> c, Class<? extends Annotation> annotationType) argument [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | Package.java | 79 * @param annotationType 85 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument 87 if (annotationType.isInstance(annotation)) { 117 * @param annotationType 123 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 124 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/libdvm/src/main/java/java/lang/ |
H A D | Class.java | 285 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument 286 if (annotationType == null) { 287 throw new NullPointerException("annotationType == null"); 290 A annotation = getDeclaredAnnotation(annotationType); 295 if (annotationType.isAnnotationPresent(Inherited.class)) { 297 annotation = sup.getDeclaredAnnotation(annotationType); 329 map.put(declaredAnnotations[i].annotationType(), declaredAnnotations[i]); 334 Class<?> clazz = declaredAnnotations[i].annotationType(); 1088 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 1089 if (annotationType [all...] |
/libcore/libart/src/main/java/java/lang/ |
H A D | Class.java | 339 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument 340 return AnnotationAccess.getAnnotation(this, annotationType); 1379 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 1380 return AnnotationAccess.isAnnotationPresent(this, annotationType);
|