223 @Override 224 public int getModifiers() { 225 return modifiers; 226 } 227 228 /** 229 * {@inheritDoc} 230 * @throws GenericSignatureFormatError {@inheritDoc} 231 * @since 1.5 232 */ 233 @Override 234 @SuppressWarnings({"rawtypes", "unchecked"}) 235 public TypeVariable<Constructor<T>>[] getTypeParameters() { 236 if (getSignature() != null) { 237 return (TypeVariable<Constructor<T>>[])getGenericInfo().getTypeParameters(); 238 } else 239 return (TypeVariable<Constructor<T>>[])new TypeVariable[0]; 240 } 241 242 243 /** 244 * {@inheritDoc} 245 */ 246 @Override 247 public Class<?>[] getParameterTypes() { 248 return parameterTypes.clone(); 249 } 250 251 /** 252 * {@inheritDoc} 253 * @since 1.8 254 */ 255 public int getParameterCount() { return parameterTypes.length; } 256 257 /** 258 * {@inheritDoc} 259 * @throws GenericSignatureFormatError {@inheritDoc} 260 * @throws TypeNotPresentException {@inheritDoc} 261 * @throws MalformedParameterizedTypeException {@inheritDoc} 262 * @since 1.5 | 223 @Override 224 public int getModifiers() { 225 return modifiers; 226 } 227 228 /** 229 * {@inheritDoc} 230 * @throws GenericSignatureFormatError {@inheritDoc} 231 * @since 1.5 232 */ 233 @Override 234 @SuppressWarnings({"rawtypes", "unchecked"}) 235 public TypeVariable<Constructor<T>>[] getTypeParameters() { 236 if (getSignature() != null) { 237 return (TypeVariable<Constructor<T>>[])getGenericInfo().getTypeParameters(); 238 } else 239 return (TypeVariable<Constructor<T>>[])new TypeVariable[0]; 240 } 241 242 243 @Override 244 Class<?>[] getSharedParameterTypes() { 245 return parameterTypes; 246 } 247 248 /** 249 * {@inheritDoc} 250 */ 251 @Override 252 public Class<?>[] getParameterTypes() { 253 return parameterTypes.clone(); 254 } 255 256 /** 257 * {@inheritDoc} 258 * @since 1.8 259 */ 260 public int getParameterCount() { return parameterTypes.length; } 261 262 /** 263 * {@inheritDoc} 264 * @throws GenericSignatureFormatError {@inheritDoc} 265 * @throws TypeNotPresentException {@inheritDoc} 266 * @throws MalformedParameterizedTypeException {@inheritDoc} 267 * @since 1.5 |