Interface IAnnotation

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IJavaElement, ISourceReference
All Known Implementing Classes:
Annotation, AssistAnnotation

public interface IAnnotation extends IJavaElement, ISourceReference
Represents an annotation on a package declaration, a type, a method, a field or a local variable in a compilation unit or a class file.

Annotations are obtained using IAnnotatable.getAnnotation(String).

Note that annotations are not children of their declaring element. To get a list of the annotations use IAnnotatable.getAnnotations().

Since:
3.4