/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 | 94 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 107 @Override public <T extends Annotation> T getAnnotation(Class<T> annotationType) { argument
|
H A D | AbstractMethod.java | 179 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 180 if (annotationType == null) { 181 throw new NullPointerException("annotationType == null"); 183 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/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 | 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/libart/src/main/java/java/lang/ |
H A D | Class.java | 343 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument 344 return AnnotationAccess.getAnnotation(this, annotationType); 1426 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument 1427 return AnnotationAccess.isAnnotationPresent(this, annotationType);
|