public interface IAnnotatable
Modifier and Type | Method and Description |
---|---|
IAnnotation |
getAnnotation(String name)
Returns the annotation with the given name declared on this element.
|
IAnnotation[] |
getAnnotations()
Returns the annotations for this element.
|
IAnnotation getAnnotation(String name)
name
- the given simple nameIAnnotation[] getAnnotations() throws JavaModelException
JavaModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.