Searched refs:annotationClass (Results 1 – 5 of 5) sorted by relevance
32 private final Class<? extends Annotation> annotationClass; field in HasMethodAnnotation34 public HasMethodAnnotation(Class<? extends Annotation> annotationClass) { in HasMethodAnnotation() argument35 this.annotationClass = annotationClass; in HasMethodAnnotation()39 return testMethod.getAnnotation(annotationClass) != null; in apply()
32 private Class<? extends Annotation> annotationClass; field in HasClassAnnotation34 public HasClassAnnotation(Class<? extends Annotation> annotationClass) { in HasClassAnnotation() argument35 this.annotationClass = annotationClass; in HasClassAnnotation()39 return testMethod.getEnclosingClass().getAnnotation(annotationClass) != null; in apply()
35 public HasAnnotation(Class<? extends Annotation> annotationClass) { in HasAnnotation() argument37 new HasMethodAnnotation(annotationClass), in HasAnnotation()38 new HasClassAnnotation(annotationClass)); in HasAnnotation()
461 Class<? extends Annotation> annotationClass = getAnnotationClass(annotationClassName); in getAnnotationPredicate() local462 if (annotationClass != null) { in getAnnotationPredicate()463 return new HasAnnotation(annotationClass); in getAnnotationPredicate()475 Class<? extends Annotation> annotationClass = getAnnotationClass(annotationClassName); in getNotAnnotationPredicate() local476 if (annotationClass != null) { in getNotAnnotationPredicate()477 return Predicates.not(new HasAnnotation(annotationClass)); in getNotAnnotationPredicate()493 Class<?> annotationClass = Class.forName(annotationClassName); in getAnnotationClass() local494 if (annotationClass.isAnnotation()) { in getAnnotationClass()495 return (Class<? extends Annotation>)annotationClass; in getAnnotationClass()
58 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() argument60 return getEnclosingClass().getMethod(getName()).getAnnotation(annotationClass); in getAnnotation()