Code example for AnnotationMirror

Methods: getAnnotationType

0
        return qualiferAnnotations;
    } 
 
    private void addOnlyWhenQualifier( Set<TypeMirror> annotationSet, AnnotationMirror candidate ) {
        // only add the candidate annotation when the candidate itself has the annotation 'Qualifier' 
        if ( QualifierPrism.getInstanceOn( candidate.getAnnotationType().asElement() ) != null ) {
            annotationSet.add( candidate.getAnnotationType() );
        } 
    } 
 
}