| 13 | import java.lang.annotation.Annotation; |
| 14 | |
| 15 | public class Constructor<T> extends AccessibleObject implements Member { |
| 16 | private Method<T> method; |
| 17 | |
| 18 | public Constructor(Method<T> method) { |
| 19 | this.method = method; |
| 20 | } |
| 21 | |
| 22 | public boolean equals(Object o) { |
| 23 | return o instanceof Constructor |
| 24 | && ((Constructor) o).method.equals(method); |
| 25 | } |
| 26 | |
| 27 | public boolean isAccessible() { |
| 28 | return method.isAccessible(); |
| 29 | } |
| 30 | |
| 31 | public void setAccessible(boolean v) { |
| 32 | method.setAccessible(v); |
| 33 | } |
| 34 | |
| 35 | public Class<T> getDeclaringClass() { |
| 36 | return method.getDeclaringClass(); |
| 37 | } |
| 38 | |
| 39 | public Class[] getParameterTypes() { |
| 40 | return method.getParameterTypes(); |
| 41 | } |
| 42 | |
| 43 | public int getModifiers() { |
| 44 | return method.getModifiers(); |
| 45 | } |
| 46 | |
| 47 | public boolean isSynthetic() { |
| 48 | return method.isSynthetic(); |
| 49 | } |
| 50 | |
| 51 | public String getName() { |
| 52 | return method.getName(); |
| 53 | } |
| 54 | |
| 55 | public <T extends Annotation> T getAnnotation(Class<T> class_) { |
| 56 | return method.getAnnotation(class_); |
| 57 | } |
| 58 | |
| 59 | public Annotation[] getAnnotations() { |
| 60 | return method.getAnnotations(); |
| 61 | } |
| 62 | |
| 63 | public Annotation[] getDeclaredAnnotations() { |
| 64 | return method.getDeclaredAnnotations(); |
| 65 | } |
| 66 | |
| 67 | private static native Object make(avian.VMClass c); |
| 68 | |
| 69 | public T newInstance(Object ... arguments) |
| 70 | throws InvocationTargetException, InstantiationException, |
| 71 | IllegalAccessException |
| 72 | { |
nothing calls this directly
no outgoing calls
no test coverage detected