284 * specified in
285 * <cite>The Java™ Virtual Machine Specification</cite>
286 * @throws TypeNotPresentException if the underlying method's
287 * return type refers to a non-existent type declaration
288 * @throws MalformedParameterizedTypeException if the
289 * underlying method's return typed refers to a parameterized
290 * type that cannot be instantiated for any reason
291 * @since 1.5
292 */
293 public Type getGenericReturnType() {
294 if (getGenericSignature() != null) {
295 return getGenericInfo().getReturnType();
296 } else { return getReturnType();}
297 }
298
299 @Override
300 Class<?>[] getSharedParameterTypes() {
301 return parameterTypes;
302 }
303
304 /**
305 * {@inheritDoc}
306 */
307 @Override
308 public Class<?>[] getParameterTypes() {
309 return parameterTypes.clone();
310 }
311
312 /**
313 * {@inheritDoc}
314 * @since 1.8
315 */
316 public int getParameterCount() { return parameterTypes.length; }
317
318
319 /**
320 * {@inheritDoc}
321 * @throws GenericSignatureFormatError {@inheritDoc}
322 * @throws TypeNotPresentException {@inheritDoc}
323 * @throws MalformedParameterizedTypeException {@inheritDoc}
|
284 * specified in
285 * <cite>The Java™ Virtual Machine Specification</cite>
286 * @throws TypeNotPresentException if the underlying method's
287 * return type refers to a non-existent type declaration
288 * @throws MalformedParameterizedTypeException if the
289 * underlying method's return typed refers to a parameterized
290 * type that cannot be instantiated for any reason
291 * @since 1.5
292 */
293 public Type getGenericReturnType() {
294 if (getGenericSignature() != null) {
295 return getGenericInfo().getReturnType();
296 } else { return getReturnType();}
297 }
298
299 @Override
300 Class<?>[] getSharedParameterTypes() {
301 return parameterTypes;
302 }
303
304 @Override
305 Class<?>[] getSharedExceptionTypes() {
306 return exceptionTypes;
307 }
308
309 /**
310 * {@inheritDoc}
311 */
312 @Override
313 public Class<?>[] getParameterTypes() {
314 return parameterTypes.clone();
315 }
316
317 /**
318 * {@inheritDoc}
319 * @since 1.8
320 */
321 public int getParameterCount() { return parameterTypes.length; }
322
323
324 /**
325 * {@inheritDoc}
326 * @throws GenericSignatureFormatError {@inheritDoc}
327 * @throws TypeNotPresentException {@inheritDoc}
328 * @throws MalformedParameterizedTypeException {@inheritDoc}
|