java.lang.reflect.AnnotatedElement |
Known Indirect Subclasses
|
This interface provides reflective access to annotation information.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns, for this element, the annotation with the specified type, or
null if no annotation with the specified type is present
(including inherited annotations). | |||||||||||
Returns, for this element, an array containing all annotations (including
inherited annotations).
| |||||||||||
Returns, for this element, all annotations that are explicitly declared
(not inherited).
| |||||||||||
Indicates whether or not this element has an annotation with the
specified annotation type (including inherited annotations).
|
Returns, for this element, the annotation with the specified type, or
null
if no annotation with the specified type is present
(including inherited annotations).
annotationType | the type of the annotation to search for |
---|
null
NullPointerException | if annotationType is null |
---|
Returns, for this element, an array containing all annotations (including inherited annotations). If there are no annotations present, this method returns a zero length array.
Returns, for this element, all annotations that are explicitly declared (not inherited). If there are no declared annotations present, this method returns a zero length array.
Indicates whether or not this element has an annotation with the specified annotation type (including inherited annotations).
annotationType | the type of the annotation to search for |
---|
true
if the annotation exists, false
otherwiseNullPointerException | if annotationType is null |
---|