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