Returns an array containing Method objects reflecting all the
declared methods of the class or interface represented by this
Class object, including public, protected, default (package)
access, and private methods, but excluding inherited methods.
If this Class object represents a type that has multiple
declared methods with the same name and parameter types, but different
return types, then the returned array has a Method object for
each such method.
If this Class object represents a type that has a class
initialization method <clinit>, then the returned array does
not have a corresponding Method object.
If this Class object represents a class or interface with no
declared methods, then the returned array has length 0.
If this Class object represents an array type, a primitive
type, or void, then the returned array has length 0.
The elements in the returned array are not sorted and are not in any particular order.
Method objects representing all the
declared methods of this class
SecurityException
| If a security manager, s, is present and any of the
following conditions is met:
|
@jls 8.2 Class Members
@jls 8.4 Method Declarations
Diagram: Class, Package, Module