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

org.jvnet.jaxb.annox.reflect.ConstructorAnnotatedElement Maven / Gradle / Ivy

The newest version!
/**
 *
 */
package org.jvnet.jaxb.annox.reflect;

import java.lang.annotation.Annotation;
import java.lang.reflect.Constructor;

public final class ConstructorAnnotatedElement implements
		ParameterizedAnnotatedElement {
	private final Constructor constructor;

	public ConstructorAnnotatedElement(Constructor constructor) {
		this.constructor = constructor;
	}

	public  T getAnnotation(Class annotationClass) {
		final T annotation = constructor. getAnnotation(annotationClass);
		return annotation;
	}

	public Annotation[] getAnnotations() {
		return constructor.getAnnotations();
	}

	public Annotation[] getDeclaredAnnotations() {
		return constructor.getDeclaredAnnotations();
	}

	public Annotation[][] getParameterAnnotations() {
		return constructor.getParameterAnnotations();
	}

	public boolean isAnnotationPresent(
			Class annotationClass) {
		return constructor.isAnnotationPresent(annotationClass);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy