| 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 |
|
| 9 |
|
| 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 |
} |