Module org.eclipse.xtend.lib.macro
Interface AnnotationTarget
- All Superinterfaces:
Element,NamedElement
- All Known Subinterfaces:
AnnotationTypeDeclaration,AnnotationTypeElementDeclaration,ClassDeclaration,CompilationUnit,ConstructorDeclaration,Declaration,EnumerationTypeDeclaration,EnumerationValueDeclaration,ExecutableDeclaration,FieldDeclaration,InterfaceDeclaration,MemberDeclaration,MethodDeclaration,MutableAnnotationTarget,MutableAnnotationTypeDeclaration,MutableAnnotationTypeElementDeclaration,MutableClassDeclaration,MutableConstructorDeclaration,MutableDeclaration,MutableEnumerationTypeDeclaration,MutableEnumerationValueDeclaration,MutableExecutableDeclaration,MutableFieldDeclaration,MutableInterfaceDeclaration,MutableMemberDeclaration,MutableMethodDeclaration,MutableParameterDeclaration,MutableTypeDeclaration,MutableTypeParameterDeclaration,MutableTypeParameterDeclarator,ParameterDeclaration,TypeDeclaration,TypeParameterDeclaration,TypeParameterDeclarator
An element that can be annotated
- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionfindAnnotation(Type annotationType) Iterable<? extends AnnotationReference> Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
Method Details
-
getAnnotations
Iterable<? extends AnnotationReference> getAnnotations()- Returns:
- the annotations this element is annotated with
-
findAnnotation
- Parameters:
annotationType-- Returns:
- the annotation reference for the given type, or
nullif this element is not annotated with the given annotation type
-