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

public Interface AnnotationTarget

extends NamedElement
Known Direct Subinterfaces
org.eclipse.xtend.lib.macro.declaration.CompilationUnit, org.eclipse.xtend.lib.macro.declaration.Declaration, org.eclipse.xtend.lib.macro.declaration.MutableAnnotationTarget
Annotations
@Beta
Imports
com.google.common.annotations.Beta

An element that can be annotated
Author
Sven Efftinge

Method Summary

Modifier and TypeMethod and Description
public AnnotationReference

Returns:

the annotation reference for the given type, or null if this element is not annotated with the given annotation type
findAnnotation
(Type annotationType)

public Iterable<? extends AnnotationReference>

Returns:

the annotations this element is annotated with
getAnnotations
()

Inherited from org.eclipse.xtend.lib.macro.declaration.NamedElement:
getCompilationUnitgetSimpleName

Method Detail

findAnnotationback to summary
public AnnotationReference findAnnotation(Type annotationType)
Returns:AnnotationReference

the annotation reference for the given type, or null if this element is not annotated with the given annotation type

getAnnotationsback to summary
public Iterable<? extends AnnotationReference> getAnnotations()
Returns:Iterable<? extends AnnotationReference>

the annotations this element is annotated with