Searched defs:annotationType (Results 1 - 10 of 10) 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
H A DAccessibleObject.java128 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument
141 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { argument
H A DConstructor.java206 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument
207 if (annotationType == null) {
208 throw new NullPointerException("annotationType == null");
210 return Method.getAnnotation(declaringClass, slot, annotationType);
213 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument
214 if (annotationType == null) {
215 throw new NullPointerException("annotationType == null");
217 return Method.isAnnotationPresent(declaringClass, slot, annotationType);
H A DMethod.java272 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument
273 if (annotationType == null) {
274 throw new NullPointerException("annotationType == null");
276 return getAnnotation(declaringClass, slot, annotationType);
279 Class<?> declaringClass, int slot, Class<A> annotationType);
281 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument
282 if (annotationType == null) {
283 throw new NullPointerException("annotationType == null");
285 return isAnnotationPresent(declaringClass, slot, annotationType);
288 Class<?> declaringClass, int slot, Class<? extends Annotation> annotationType);
278 getAnnotation( Class<?> declaringClass, int slot, Class<A> annotationType) argument
287 isAnnotationPresent( Class<?> declaringClass, int slot, Class<? extends Annotation> annotationType) argument
[all...]
H A DField.java208 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument
209 if (annotationType == null) {
210 throw new NullPointerException("annotationType == null");
212 return getAnnotation(declaringClass, slot, annotationType);
215 Class<?> declaringClass, int slot, Class<A> annotationType);
217 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument
218 if (annotationType == null) {
219 throw new NullPointerException("annotationType == null");
221 return isAnnotationPresent(declaringClass, slot, annotationType);
224 Class<?> declaringClass, int slot, Class<? extends Annotation> annotationType);
214 getAnnotation( Class<?> declaringClass, int slot, Class<A> annotationType) argument
223 isAnnotationPresent( Class<?> declaringClass, int slot, Class<? extends Annotation> annotationType) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/lang/annotation/
H A DAnnotationFactory.java61 public static AnnotationMember[] getElementsDescription(Class<? extends Annotation> annotationType ) {
62 AnnotationMember[] desc = cache.get(annotationType);
64 if (!annotationType.isAnnotation()) {
66 + annotationType.getName());
68 Method[] m = annotationType.getDeclaredMethods();
82 cache.put(annotationType, desc);
89 * @param annotationType the annotation type definition
94 Class<? extends Annotation> annotationType,
97 AnnotationFactory antn = new AnnotationFactory(annotationType, elements);
98 return (Annotation)Proxy.newProxyInstance( annotationType
93 createAnnotation( Class<? extends Annotation> annotationType, AnnotationMember[] elements) argument
[all...]
/libcore/luni/src/main/java/java/lang/
H A DPackage.java79 * @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;
H A DClass.java238 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { argument
239 if (annotationType == null) {
240 throw new NullPointerException("annotationType == null");
243 A annotation = getDeclaredAnnotation(annotationType);
248 if (annotationType.isAnnotationPresent(Inherited.class)) {
250 annotation = sup.getDeclaredAnnotation(annotationType);
282 map.put(declaredAnnotations[i].annotationType(), declaredAnnotations[i]);
287 Class<?> clazz = declaredAnnotations[i].annotationType();
1014 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { argument
1015 if (annotationType
[all...]

Completed in 212 milliseconds