1 16 19 package com.sun.org.apache.xml.internal.utils.synthetic.reflection; 20 21 22 34 public class Constructor extends EntryPoint implements Member 35 { 36 37 45 private com.sun.org.apache.xml.internal.utils.synthetic.Class declaringclass = null; 46 47 48 private java.lang.reflect.Constructor realconstructor = null; 49 50 51 private com.sun.org.apache.xml.internal.utils.synthetic.Class[] parametertypes; 52 53 54 private String [] parameternames; 55 56 57 private com.sun.org.apache.xml.internal.utils.synthetic.Class[] exceptiontypes; 58 59 60 private int modifiers; 61 62 70 public Constructor(com.sun.org.apache.xml.internal.utils.synthetic.Class declaringclass) 71 { 72 super(declaringclass); 73 } 74 75 84 public Constructor(java.lang.reflect.Constructor ctor, 85 com.sun.org.apache.xml.internal.utils.synthetic.Class declaringclass) 86 { 87 super(ctor, declaringclass); 88 } 89 90 98 public Constructor(java.lang.reflect.Constructor realconstructor) 99 { 100 super(realconstructor); 101 } 102 103 110 public int hashCode() 111 { 112 return getDeclaringClass().getName().hashCode(); 113 } 114 115 191 public Object newInstance(Object initargs[]) 192 throws InstantiationException , IllegalAccessException , 193 IllegalArgumentException , 194 java.lang.reflect.InvocationTargetException 195 { 196 197 if (realep != null) 198 return ((java.lang.reflect.Constructor ) realep).newInstance(initargs); 199 else 200 throw new InstantiationException ( 201 "Un-reified com.sun.org.apache.xml.internal.utils.synthetic.Class doesn't yet support invocation"); 202 } 203 } 204 | Popular Tags |