184 @Override 185 @SuppressWarnings({"rawtypes", "unchecked"}) 186 public TypeVariable<Constructor<T>>[] getTypeParameters() { 187 if (getSignature() != null) { 188 return (TypeVariable<Constructor<T>>[])getGenericInfo().getTypeParameters(); 189 } else 190 return (TypeVariable<Constructor<T>>[])new TypeVariable[0]; 191 } 192 193 194 /** 195 * {@inheritDoc} 196 */ 197 @Override 198 public Class<?>[] getParameterTypes() { 199 return parameterTypes.clone(); 200 } 201 202 /** 203 * {@inheritDoc} 204 * @throws GenericSignatureFormatError {@inheritDoc} 205 * @throws TypeNotPresentException {@inheritDoc} 206 * @throws MalformedParameterizedTypeException {@inheritDoc} 207 * @since 1.5 208 */ 209 @Override 210 public Type[] getGenericParameterTypes() { 211 return super.getGenericParameterTypes(); 212 } 213 214 /** 215 * {@inheritDoc} 216 */ 217 @Override 218 public Class<?>[] getExceptionTypes() { 219 return exceptionTypes.clone(); 220 } 221 222 223 /** | 184 @Override 185 @SuppressWarnings({"rawtypes", "unchecked"}) 186 public TypeVariable<Constructor<T>>[] getTypeParameters() { 187 if (getSignature() != null) { 188 return (TypeVariable<Constructor<T>>[])getGenericInfo().getTypeParameters(); 189 } else 190 return (TypeVariable<Constructor<T>>[])new TypeVariable[0]; 191 } 192 193 194 /** 195 * {@inheritDoc} 196 */ 197 @Override 198 public Class<?>[] getParameterTypes() { 199 return parameterTypes.clone(); 200 } 201 202 /** 203 * {@inheritDoc} 204 */ 205 public int getNumParameters() { return parameterTypes.length; } 206 207 /** 208 * {@inheritDoc} 209 * @throws GenericSignatureFormatError {@inheritDoc} 210 * @throws TypeNotPresentException {@inheritDoc} 211 * @throws MalformedParameterizedTypeException {@inheritDoc} 212 * @since 1.5 213 */ 214 @Override 215 public Type[] getGenericParameterTypes() { 216 return super.getGenericParameterTypes(); 217 } 218 219 /** 220 * {@inheritDoc} 221 */ 222 @Override 223 public Class<?>[] getExceptionTypes() { 224 return exceptionTypes.clone(); 225 } 226 227 228 /** |