115 public int getConstructorSlot(Constructor<?> c) { 116 return c.getSlot(); 117 } 118 119 public String getConstructorSignature(Constructor<?> c) { 120 return c.getSignature(); 121 } 122 123 public byte[] getConstructorAnnotations(Constructor<?> c) { 124 return c.getRawAnnotations(); 125 } 126 127 public byte[] getConstructorParameterAnnotations(Constructor<?> c) { 128 return c.getRawParameterAnnotations(); 129 } 130 131 public byte[] getExecutableTypeAnnotationBytes(Executable ex) { 132 return ex.getTypeAnnotationBytes(); 133 } 134 135 // 136 // Copying routines, needed to quickly fabricate new Field, 137 // Method, and Constructor objects from templates 138 // 139 public Method copyMethod(Method arg) { 140 return arg.copy(); 141 } 142 public Method leafCopyMethod(Method arg) { 143 return arg.leafCopy(); 144 } 145 146 public Field copyField(Field arg) { 147 return arg.copy(); 148 } 149 150 public <T> Constructor<T> copyConstructor(Constructor<T> arg) { 151 return arg.copy(); 152 } 153 } | 115 public int getConstructorSlot(Constructor<?> c) { 116 return c.getSlot(); 117 } 118 119 public String getConstructorSignature(Constructor<?> c) { 120 return c.getSignature(); 121 } 122 123 public byte[] getConstructorAnnotations(Constructor<?> c) { 124 return c.getRawAnnotations(); 125 } 126 127 public byte[] getConstructorParameterAnnotations(Constructor<?> c) { 128 return c.getRawParameterAnnotations(); 129 } 130 131 public byte[] getExecutableTypeAnnotationBytes(Executable ex) { 132 return ex.getTypeAnnotationBytes(); 133 } 134 135 public Class<?>[] getExecutableSharedParameterTypes(Executable ex) { 136 return ex.getSharedParameterTypes(); 137 } 138 139 // 140 // Copying routines, needed to quickly fabricate new Field, 141 // Method, and Constructor objects from templates 142 // 143 public Method copyMethod(Method arg) { 144 return arg.copy(); 145 } 146 public Method leafCopyMethod(Method arg) { 147 return arg.leafCopy(); 148 } 149 150 public Field copyField(Field arg) { 151 return arg.copy(); 152 } 153 154 public <T> Constructor<T> copyConstructor(Constructor<T> arg) { 155 return arg.copy(); 156 } 157 } |