Top Methods
org.eclipse.xtend.lib.macro.declaration

public Interface MutableAnnotationTarget

extends MutableNamedElement, AnnotationTarget
Known Direct Subinterfaces
org.eclipse.xtend.lib.macro.declaration.MutableDeclaration
Annotations
@Beta
Imports
com.google.common.annotations.Beta

Author
Sven Efftinge

Method Summary

Modifier and TypeMethod and Description
public AnnotationReference

Returns:

a new annotation reference
addAnnotation
(AnnotationReference
the annotation reference
annotationReference
)

Annotate this element with the given annotation reference.

public boolean

Returns:

true if this element contained the specified annotation
removeAnnotation
(AnnotationReference
the annotation reference
annotationReference
)

Remove the given annotation reference from this element.

Inherited from org.eclipse.xtend.lib.macro.declaration.AnnotationTarget:
findAnnotationgetAnnotations
Inherited from org.eclipse.xtend.lib.macro.declaration.MutableNamedElement:
setSimpleName

Method Detail

addAnnotationback to summary
public AnnotationReference addAnnotation(AnnotationReference annotationReference)

Annotate this element with the given annotation reference.

Parameters
annotationReference:AnnotationReference

the annotation reference

Returns:AnnotationReference

a new annotation reference

Exceptions
IllegalArgumentException:
if the given annotation reference is null
Since
2.6
removeAnnotationback to summary
public boolean removeAnnotation(AnnotationReference annotationReference)

Remove the given annotation reference from this element.

Parameters
annotationReference:AnnotationReference

the annotation reference

Returns:boolean

true if this element contained the specified annotation

Since
2.6