public interface IJavaAnnotatedElement
| Modifier and Type | Method and Description |
|---|---|
IAnnotationInfo |
getAnnotation(Class<? extends Annotation> annotationClass)
Returns this element's annotation for the specified type if
such an annotation is present, else null.
|
IAnnotationInfo[] |
getDeclaredAnnotations()
Returns all annotations that are directly present on this
element.
|
IJavaClassInfo |
getEnclosingClass() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass)
Returns true if an annotation for the specified type
is present on this element, else false.
|
boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
annotationClass - the Class object corresponding to the
annotation typeNullPointerException - if the given annotation class is nullIAnnotationInfo getAnnotation(Class<? extends Annotation> annotationClass)
annotationClass - the Class object corresponding to the
annotation typeNullPointerException - if the given annotation class is nullIAnnotationInfo[] getDeclaredAnnotations()
IJavaClassInfo getEnclosingClass()
Copyright © 2016. All rights reserved.