public interface AnnotatedMethod
http://www.fusionsoft-online.com/articles-java-annotations.php
Modifier and Type | Method and Description |
---|---|
Annotation[] |
getAllAnnotations() |
AnnotatedClass |
getAnnotatedClass() |
<T extends Annotation> |
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.
|
AnnotatedClass getAnnotatedClass()
Method getMethod()
boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
annotationClass
- the Class object corresponding to the annotation typeAnnotation[] getAllAnnotations()
<T extends Annotation> T getAnnotation(Class<T> annotationClass)
annotationClass
- of the annotation to find.Annotation[][] getParameterAnnotations()
Copyright © 2020. All rights reserved.