Interface MutableAnnotationTarget
-
- All Superinterfaces:
AnnotationTarget,Element,MutableElement,MutableNamedElement,NamedElement
- All Known Subinterfaces:
MutableAnnotationTypeDeclaration,MutableAnnotationTypeElementDeclaration,MutableClassDeclaration,MutableConstructorDeclaration,MutableDeclaration,MutableEnumerationTypeDeclaration,MutableEnumerationValueDeclaration,MutableExecutableDeclaration,MutableFieldDeclaration,MutableInterfaceDeclaration,MutableMemberDeclaration,MutableMethodDeclaration,MutableParameterDeclaration,MutableTypeDeclaration,MutableTypeParameterDeclaration,MutableTypeParameterDeclarator
@Beta public interface MutableAnnotationTarget extends MutableNamedElement, AnnotationTarget
- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnnotationReferenceaddAnnotation(AnnotationReference annotationReference)Annotate this element with the given annotation reference.booleanremoveAnnotation(AnnotationReference annotationReference)Remove the given annotation reference from this element.-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotations
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableElement
remove
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableNamedElement
setSimpleName
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
-
-
-
Method Detail
-
addAnnotation
AnnotationReference addAnnotation(AnnotationReference annotationReference)
Annotate this element with the given annotation reference.- Parameters:
annotationReference- the annotation reference- Returns:
- a new annotation reference
- Throws:
java.lang.IllegalArgumentException- if the given annotation reference isnull- Since:
- 2.6
-
removeAnnotation
boolean removeAnnotation(AnnotationReference annotationReference)
Remove the given annotation reference from this element.- Parameters:
annotationReference- the annotation reference- Returns:
trueif this element contained the specified annotation- Since:
- 2.6
-
-