src/share/classes/java/lang/reflect/Method.java

Print this page




 238      *     underlying method's return typed refers to a parameterized
 239      *     type that cannot be instantiated for any reason
 240      * @since 1.5
 241      */
 242     public Type getGenericReturnType() {
 243       if (getGenericSignature() != null) {
 244         return getGenericInfo().getReturnType();
 245       } else { return getReturnType();}
 246     }
 247 
 248     /**
 249      * {@inheritDoc}
 250      */
 251     @Override
 252     public Class<?>[] getParameterTypes() {
 253         return parameterTypes.clone();
 254     }
 255 
 256     /**
 257      * {@inheritDoc}






 258      * @throws GenericSignatureFormatError {@inheritDoc}
 259      * @throws TypeNotPresentException {@inheritDoc}
 260      * @throws MalformedParameterizedTypeException {@inheritDoc}
 261      * @since 1.5
 262      */
 263     @Override
 264     public Type[] getGenericParameterTypes() {
 265         return super.getGenericParameterTypes();
 266     }
 267 
 268     /**
 269      * {@inheritDoc}
 270      */
 271     @Override
 272     public Class<?>[] getExceptionTypes() {
 273         return exceptionTypes.clone();
 274     }
 275 
 276     /**
 277      * {@inheritDoc}




 238      *     underlying method's return typed refers to a parameterized
 239      *     type that cannot be instantiated for any reason
 240      * @since 1.5
 241      */
 242     public Type getGenericReturnType() {
 243       if (getGenericSignature() != null) {
 244         return getGenericInfo().getReturnType();
 245       } else { return getReturnType();}
 246     }
 247 
 248     /**
 249      * {@inheritDoc}
 250      */
 251     @Override
 252     public Class<?>[] getParameterTypes() {
 253         return parameterTypes.clone();
 254     }
 255 
 256     /**
 257      * {@inheritDoc}
 258      */
 259     public int getParameterCount() { return parameterTypes.length; }
 260 
 261 
 262     /**
 263      * {@inheritDoc}
 264      * @throws GenericSignatureFormatError {@inheritDoc}
 265      * @throws TypeNotPresentException {@inheritDoc}
 266      * @throws MalformedParameterizedTypeException {@inheritDoc}
 267      * @since 1.5
 268      */
 269     @Override
 270     public Type[] getGenericParameterTypes() {
 271         return super.getGenericParameterTypes();
 272     }
 273 
 274     /**
 275      * {@inheritDoc}
 276      */
 277     @Override
 278     public Class<?>[] getExceptionTypes() {
 279         return exceptionTypes.clone();
 280     }
 281 
 282     /**
 283      * {@inheritDoc}