Module org.eclipse.xtend.lib.macro
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
- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation(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, getAnnotationsMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableElement
removeMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableNamedElement
setSimpleNameMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
Method Details
-
addAnnotation
Annotate this element with the given annotation reference.- Parameters:
annotationReference- the annotation reference- Returns:
- a new annotation reference
- Throws:
IllegalArgumentException- if the given annotation reference isnull- Since:
- 2.6
-
removeAnnotation
Remove the given annotation reference from this element.- Parameters:
annotationReference- the annotation reference- Returns:
trueif this element contained the specified annotation- Since:
- 2.6
-