|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AnnotatedMethod
The annotated method is a wrapping for some method
providing inheritance of all annotations of the method
being overridden by this one. If the same method has
different annotations in different superclasses or superinterface,
the last annotation met is taken. So you better maintain the same
annotations in this case.
Note: This class is a modified version of the original Fusionsoft Annotation
library. See: http://www.fusionsoft-online.com/articles-java-annotations.php
| Method Summary | ||
|---|---|---|
Annotation[] |
getAllAnnotations()
|
|
AnnotatedClass |
getAnnotatedClass()
|
|
|
getAnnotation(Class<T> annotationClass)
|
|
Method |
getMethod()
|
|
Annotation[][] |
getParameterAnnotations()
Returns an array of arrays that represent the annotations on the formal parameters, in declaration order, of the method represented by this Method object. |
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass)
Returns true if an annotation for the specified type is present on this element, else false. |
|
| Method Detail |
|---|
AnnotatedClass getAnnotatedClass()
Method getMethod()
boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
annotationClass - the Class object corresponding to the annotation type
Annotation[] getAllAnnotations()
<T extends Annotation> T getAnnotation(Class<T> annotationClass)
annotationClass - of the annotation to find.
Annotation[][] getParameterAnnotations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||