![JAR search and dependency download from the Maven repository](/logo.png)
org.jvnet.jaxb.annox.reflect.MethodAnnotatedElement Maven / Gradle / Ivy
The newest version!
/**
*
*/
package org.jvnet.jaxb.annox.reflect;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
public final class MethodAnnotatedElement implements
ParameterizedAnnotatedElement {
private final Method method;
public MethodAnnotatedElement(Method method) {
this.method = method;
}
public T getAnnotation(Class annotationClass) {
return method. getAnnotation(annotationClass);
}
public Annotation[] getAnnotations() {
return method.getAnnotations();
}
public Annotation[] getDeclaredAnnotations() {
return method.getDeclaredAnnotations();
}
public Annotation[][] getParameterAnnotations() {
return method.getParameterAnnotations();
}
public boolean isAnnotationPresent(
Class extends Annotation> annotationClass) {
return method.isAnnotationPresent(annotationClass);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy