java.lang.reflect
Class Method
java.lang.Object
java.lang.reflect.AccessibleObject
java.lang.reflect.Method
All Implemented Interfaces:
AnnotatedElement, GenericDeclaration, Member
--------------------------------------------------------------------------------
public final class Method
extends AccessibleObject
implements GenericDeclaration, Member
A Method
provides information about, and access
to, a single method on a class or interface. The reflected method may be a class
method or an instance method (including an abstract method).
A Method
permits(允许) widening(扩展) conversions to occur(发生) when matching(一致的) the
actual(实际的) parameters to invoke with the underlying method's formal(正式的) parameters, but
it throws an IllegalArgumentException
if a narrowing conversion
would occur(发生).