All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jvnet.annox.reflect.MethodAnnotatedElement Maven / Gradle / Ivy

The newest version!
/**
 * 
 */
package org.jvnet.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 annotationClass) {
		return method.isAnnotationPresent(annotationClass);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy