public class BasicAnnotationProvider extends Object implements AnnotationProvider
| Constructor and Description | 
|---|
| BasicAnnotationProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| AnnotationMirror | getAnnotationMirror(Tree tree,
                   Class<? extends Annotation> target)Return the annotation on  treethat has the classtarget. | 
| AnnotationMirror | getDeclAnnotation(Element elt,
                 Class<? extends Annotation> anno)Returns the actual annotation mirror used to annotate this type, whose name equals the passed
 annotationName if one exists, null otherwise. | 
public AnnotationMirror getDeclAnnotation(Element elt, Class<? extends Annotation> anno)
AnnotationProvidergetDeclAnnotation in interface AnnotationProvideranno - annotation classpublic AnnotationMirror getAnnotationMirror(Tree tree, Class<? extends Annotation> target)
AnnotationProvidertree that has the class target. If no annotation for
 the given target class exists, the result is nullgetAnnotationMirror in interface AnnotationProvidertree - the tree of which the annotation is returnedtarget - the class of the annotation