Inheritance diagram for java.lang.reflect.Method:
This class models a method. Information about the method can be accessed, and the method can be invoked dynamically.
Public Member Functions | |
boolean | equals (Object object) |
Compares the specified object to this Method and answer if they are equal. | |
Class | getDeclaringClass () |
Return the java.lang.Class associated with the class that defined this constructor. | |
Class[] | getExceptionTypes () |
Return an array of the java.lang.Class objects associated with the exceptions declared to be thrown by this method. | |
int | getModifiers () |
Return the modifiers for the modelled constructor. | |
String | getName () |
Return the name of the modelled method. | |
Class[] | getParameterTypes () |
Return an array of the java.lang.Class objects associated with the parameter types of this method. | |
Class | getReturnType () |
Return the java.lang.Class associated with the return type of this method. | |
int | hashCode () |
Answers an integer hash code for the receiver. | |
Object | invoke (Object receiver, Object args[]) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException |
Return the result of dynamically invoking the modelled method. | |
String | toString () |
Answers a string containing a concise, human-readable description of the receiver. |
|
Compares the specified object to this Method and answer if they are equal. The object must be an instance of Method with the same defining class and parameter types.
|
|
Return the java.lang.Class associated with the class that defined this constructor.
|
|
Return an array of the java.lang.Class objects associated with the exceptions declared to be thrown by this method. If the method was not declared to throw any exceptions, the array returned will be empty.
|
|
Return the modifiers for the modelled constructor. The Modifier class should be used to decode the result.
Reimplemented from java.lang.reflect.AccessibleObject. |
|
Return the name of the modelled method.
|
|
Return an array of the java.lang.Class objects associated with the parameter types of this method. If the method was declared with no parameters, the array returned will be empty.
|
|
Return the java.lang.Class associated with the return type of this method.
|
|
Answers an integer hash code for the receiver. Objects which are equal answer the same value for this method. The hash code for a Method is the hash code of the method's name.
|
|
Return the result of dynamically invoking the modelled method.
This reproduces the effect of
|
|
Answers a string containing a concise, human-readable description of the receiver.
The format of the string is modifiers (if any) return type declaring class name '.' method name '(' parameter types, separated by ',' ')' If the method throws exceptions, ' throws ' exception types, separated by ',' For example:
|