Debian Codegraph @

resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/metadata/MethodParameter.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 MethodParameter extends Parameter
12 {
13 protected Annotation[] annotations = {};
14 protected ResourceLocator locator;
15
16 protected MethodParameter(ResourceLocator locator, Class<?> type, Type genericType,Annotation[] annotations)
17 {
18 super(locator.getResourceClass(), type, genericType);
19 this.annotations = annotations;
20 this.locator = locator;
21 }
22
23 @Override
24 public AccessibleObject getAccessibleObject()
25 {
26 return locator.method;
27 }
28
29 public Annotation[] getAnnotations()
30 {
31 return annotations;
32 }
33 }