@Beta public interface MutableAnnotationTarget extends MutableNamedElement, AnnotationTarget
| Modifier and Type | Method and Description | 
|---|---|
AnnotationReference | 
addAnnotation(AnnotationReference annotationReference)
Annotate this element with the given annotation reference. 
 | 
boolean | 
removeAnnotation(AnnotationReference annotationReference)
Remove the given annotation reference from this element. 
 | 
setSimpleNameremovefindAnnotation, getAnnotationsgetCompilationUnit, getSimpleNameAnnotationReference addAnnotation(AnnotationReference annotationReference)
annotationReference - the annotation referencejava.lang.IllegalArgumentException - if the given annotation reference is nullboolean removeAnnotation(AnnotationReference annotationReference)
annotationReference - the annotation referencetrue if this element contained the specified annotation