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
@Beta public interface AnnotationTarget extends NamedElement
An element that can be annotated- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnnotationReferencefindAnnotation(Type annotationType)java.lang.Iterable<? extends AnnotationReference>getAnnotations()-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
-
-
-
Method Detail
-
getAnnotations
java.lang.Iterable<? extends AnnotationReference> getAnnotations()
- Returns:
- the annotations this element is annotated with
-
findAnnotation
AnnotationReference findAnnotation(Type annotationType)
- Parameters:
annotationType-- Returns:
- the annotation reference for the given type, or
nullif this element is not annotated with the given annotation type
-
-