Uses of Class java.lang.reflect.Method

Uses in package javax.management

Constructors with parameter type java.lang.reflect.Method

Constructs a new MBeanAttributeInfo using the specified name and description, with the given accessor and mutator methods.
Constructs a @link{MBeanOperationInfo} with the specified description using the given method.

Methods with parameter type java.lang.reflect.Method

Object
Called by the proxy class whenever a method is called.

Uses in package java.lang.reflect

Methods with parameter type java.lang.reflect.Method

Object
InvocationHandler.invoke(Object proxy, Method method, Object[] args)
When a method is invoked on a proxy instance, it is wrapped and this method is called instead, so that you may decide at runtime how the original method should behave.

Uses in package java.lang

Methods with return type java.lang.reflect.Method

Method
Class<T>.getDeclaredMethod(String methodName, Class... types)
Get a method declared in this class, where name is its simple name.
Method[]
Get all the declared methods in this class, but not those inherited from superclasses.
Method
Returns the method which immediately encloses this class.
Method
Class<T>.getMethod(String methodName, Class... types)
Get a public method declared or inherited in this class, where name is its simple name.
Method[]
Get all the public methods declared in this class or inherited from superclasses.

Uses in package java.beans

Constructors with parameter type java.lang.reflect.Method

EventSetDescriptor.EventSetDescriptor(String eventSetName, Class listenerType, MethodDescriptor[] listenerMethodDescriptors, Method addListenerMethod, Method removeListenerMethod)
Creates a new EventSetDescriptor.
EventSetDescriptor.EventSetDescriptor(String eventSetName, Class listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod)
Creates a new EventSetDescriptor.
EventSetDescriptor.EventSetDescriptor(String eventSetName, Class listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod, Method getListenerMethod)
Creates a new EventSetDescriptor.

This variant of the constructor allows you to specify the names of the methods and adds no new constraints on top of the rules already described at the top of the class.

IndexedPropertyDescriptor.IndexedPropertyDescriptor(String name, Method getMethod, Method setMethod, Method getIndex, Method setIndex)
Create a new PropertyDescriptor using explicit Methods.
Create a new MethodDescriptor.
Create a new MethodDescriptor.
PropertyDescriptor.PropertyDescriptor(String name, Method readMethod, Method writeMethod)
Create a new PropertyDescriptor using explicit Methods.

Methods with parameter type java.lang.reflect.Method

Object
EventHandler.invoke(Object proxy, Method method, Object[] arguments)
Invokes the EventHandler.
void
Sets the method that is used to read an indexed property.
void
Sets the method that is used to write an indexed property.
void
Sets the read method.
The read method is used to retrieve the value of a property.
void
Sets the write method.
The write method is used to set the value of a property.

Methods with return type java.lang.reflect.Method

Method
Returns the add listener method.
Method
Returns the method that retrieves the listeners or null if it does not exist.
Method
Method
Method[]
Returns the event firing methods.
Method
Get the method this MethodDescriptor represents.
Method
Get the get method.
Method
Method
Get the set method.

Uses in package java.rmi.server

Methods with parameter type java.lang.reflect.Method

Object
RemoteObjectInvocationHandler.invoke(Object proxyInstance, Method method, Object[] parameters)
Invoke the remote method.
Object
RemoteRef.invoke(Remote obj, Method method, Object[] params, long methodHash)
Invoke a method.

Uses in package java.lang.annotation

Constructors with parameter type java.lang.reflect.Method

Constructs an AnnotationTypeMismatchException which is due to a mismatched type in the annotation element, m.

Methods with return type java.lang.reflect.Method

Method
Returns the element from the annotation, for which a mismatch occurred.

Uses in package javax.management.openmbean

Methods with parameter type java.lang.reflect.Method

Object
Called by the proxy class whenever a method is called.