Debian Codegraph @

resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/metadata/ConstructorParameter.java

raw symbols SCIP
1 package org.jboss.resteasy.spi.metadata;
2
3 import java.lang.annotation.Annotation;
4 import java.lang.reflect.AccessibleObject;
5 import java.lang.reflect.Type;
6
7 /**
8 * @author <a href="mailto:[email protected]">Bill Burke</a>
9 * @version $Revision: 1 $
10 */
11 public class ConstructorParameter extends Parameter
12 {
13 protected Annotation[] annotations = {};
14 protected ResourceConstructor constructor;
15
16 protected ConstructorParameter(ResourceConstructor constructor, Class<?> type, Type genericType, Annotation[] annotations)
17 {
18 super(constructor.getResourceClass(), type, genericType);
19 this.annotations = annotations;
20 this.constructor = constructor;
21 }
22
23 @Override
24 public AccessibleObject getAccessibleObject()
25 {
26 return constructor.getConstructor();
27 }
28
29 public Annotation[] getAnnotations()
30 {
31 return annotations;
32 }
33 }