Lines Matching refs:annotationType
102 public <T extends Annotation> T findDeepAnnotation(Class<T> annotationType) {
104 return findDeepAnnotation(annotations2, annotationType, 3);
108 Annotation[] annotations, Class<T> annotationType, int depth) {
113 if (annotationType.isInstance(each)) {
114 return annotationType.cast(each);
116 Annotation candidate = findDeepAnnotation(each.annotationType()
117 .getAnnotations(), annotationType, depth - 1);
119 return annotationType.cast(candidate);
126 public <T extends Annotation> T getAnnotation(Class<T> annotationType) {
128 if (annotationType.isInstance(each)) {
129 return annotationType.cast(each);