Lines Matching refs:annotationType
65 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
66 return getAnnotation(annotationType) != null;
71 public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
72 checkNotNull(annotationType);
74 if (annotationType.isInstance(annotation)) {
75 return annotationType.cast(annotation);
89 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) {
90 return getDeclaredAnnotationsByType(annotationType);
106 public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationType) {
107 checkNotNull(annotationType);
109 .filter(annotationType)
119 getDeclaredAnnotationsByType(Class<A> annotationType) {
121 .filter(annotationType)
122 .toArray(annotationType);