@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.
|
setSimpleName
remove
findAnnotation, getAnnotations
getCompilationUnit, getSimpleName
AnnotationReference addAnnotation(AnnotationReference annotationReference)
annotationReference
- the annotation referencejava.lang.IllegalArgumentException
- if the given annotation reference is null
boolean removeAnnotation(AnnotationReference annotationReference)
annotationReference
- the annotation referencetrue
if this element contained the specified annotation