Uses of Class
java.lang.reflect.Method
-
Packages that use Method Package Description java.beans Contains classes related to developing beans -- components based on the JavaBeans™ architecture.java.lang Provides classes that are fundamental to the design of the Java programming language.java.lang.annotation Provides library support for the Java programming language annotation facility.java.lang.invoke Thejava.lang.invoke
package contains dynamic language support provided directly by the Java core class libraries and virtual machine.java.lang.reflect Provides classes and interfaces for obtaining reflective information about classes and objects.java.rmi.server Provides classes and interfaces for supporting the server side of RMI.javafx.beans.property.adapter Provides various classes that act as adapters between a regular Java Bean property and a correspondingJavaFX Property
.javax.management Provides the core classes for the Java Management Extensions.javax.management.modelmbean Provides the definition of the ModelMBean classes.javax.management.openmbean Provides the open data types and Open MBean descriptor classes.javax.xml.ws.spi This package defines SPIs for JAX-WS.jdk.dynalink.linker.support Contains classes that make it more convenient for language runtimes to implement their own language-specific object models and type conversions by providing basic implementations of some classes as well as various utilities.jdk.jshell.execution Provides implementation support for building JShell execution engines. -
-
Uses of Method in java.beans
Methods in java.beans that return Method Modifier and Type Method Description Method
EventSetDescriptor. getAddListenerMethod()
Gets the method used to add event listeners.Method
EventSetDescriptor. getGetListenerMethod()
Gets the method used to access the registered event listeners.Method
IndexedPropertyDescriptor. getIndexedReadMethod()
Gets the method that should be used to read an indexed property value.Method
IndexedPropertyDescriptor. getIndexedWriteMethod()
Gets the method that should be used to write an indexed property value.Method[]
EventSetDescriptor. getListenerMethods()
Gets the methods of the target listener interface.Method
MethodDescriptor. getMethod()
Gets the method that this MethodDescriptor encapsulates.Method
PropertyDescriptor. getReadMethod()
Gets the method that should be used to read the property value.Method
EventSetDescriptor. getRemoveListenerMethod()
Gets the method used to remove event listeners.Method
PropertyDescriptor. getWriteMethod()
Gets the method that should be used to write the property value.Methods in java.beans with parameters of type Method Modifier and Type Method Description Object
EventHandler. invoke(Object proxy, Method method, Object[] arguments)
Extract the appropriate property value from the event and pass it to the action associated with thisEventHandler
.void
IndexedPropertyDescriptor. setIndexedReadMethod(Method readMethod)
Sets the method that should be used to read an indexed property value.void
IndexedPropertyDescriptor. setIndexedWriteMethod(Method writeMethod)
Sets the method that should be used to write an indexed property value.void
PropertyDescriptor. setReadMethod(Method readMethod)
Sets the method that should be used to read the property value.void
PropertyDescriptor. setWriteMethod(Method writeMethod)
Sets the method that should be used to write the property value.Constructors in java.beans with parameters of type Method Constructor Description EventSetDescriptor(String eventSetName, Class<?> listenerType, MethodDescriptor[] listenerMethodDescriptors, Method addListenerMethod, Method removeListenerMethod)
Creates anEventSetDescriptor
from scratch usingjava.lang.reflect.MethodDescriptor
andjava.lang.Class
objects.EventSetDescriptor(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod)
Creates anEventSetDescriptor
from scratch usingjava.lang.reflect.Method
andjava.lang.Class
objects.EventSetDescriptor(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod, Method getListenerMethod)
This constructor creates an EventSetDescriptor from scratch using java.lang.reflect.Method and java.lang.Class objects.IndexedPropertyDescriptor(String propertyName, Method readMethod, Method writeMethod, Method indexedReadMethod, Method indexedWriteMethod)
This constructor takes the name of a simple property, and Method objects for reading and writing the property.MethodDescriptor(Method method)
Constructs aMethodDescriptor
from aMethod
.MethodDescriptor(Method method, ParameterDescriptor[] parameterDescriptors)
Constructs aMethodDescriptor
from aMethod
providing descriptive information for each of the method's parameters.PropertyDescriptor(String propertyName, Method readMethod, Method writeMethod)
This constructor takes the name of a simple property, and Method objects for reading and writing the property. -
Uses of Method in java.lang
Methods in java.lang that return Method Modifier and Type Method Description Method
Class. getDeclaredMethod(String name, Class<?>... parameterTypes)
Returns aMethod
object that reflects the specified declared method of the class or interface represented by thisClass
object.Method[]
Class. getDeclaredMethods()
Returns an array containingMethod
objects reflecting all the declared methods of the class or interface represented by thisClass
object, including public, protected, default (package) access, and private methods, but excluding inherited methods.Method
Class. getEnclosingMethod()
If thisClass
object represents a local or anonymous class within a method, returns aMethod
object representing the immediately enclosing method of the underlying class.Method
Class. getMethod(String name, Class<?>... parameterTypes)
Returns aMethod
object that reflects the specified public member method of the class or interface represented by thisClass
object.Method[]
Class. getMethods()
Returns an array containingMethod
objects reflecting all the public methods of the class or interface represented by thisClass
object, including those declared by the class or interface and those inherited from superclasses and superinterfaces. -
Uses of Method in java.lang.annotation
Methods in java.lang.annotation that return Method Modifier and Type Method Description Method
AnnotationTypeMismatchException. element()
Returns theMethod
object for the incorrectly typed element.Constructors in java.lang.annotation with parameters of type Method Constructor Description AnnotationTypeMismatchException(Method element, String foundType)
Constructs an AnnotationTypeMismatchException for the specified annotation type element and found data type. -
Uses of Method in java.lang.invoke
Methods in java.lang.invoke with parameters of type Method Modifier and Type Method Description MethodHandle
MethodHandles.Lookup. unreflect(Method m)
Makes a direct method handle to m, if the lookup class has permission.MethodHandle
MethodHandles.Lookup. unreflectSpecial(Method m, Class<?> specialCaller)
Produces a method handle for a reflected method. -
Uses of Method in java.lang.reflect
Methods in java.lang.reflect that return types with arguments of type Method Modifier and Type Method Description TypeVariable<Method>[]
Method. getTypeParameters()
Returns an array ofTypeVariable
objects that represent the type variables declared by the generic declaration represented by thisGenericDeclaration
object, in declaration order.Methods in java.lang.reflect with parameters of type Method Modifier and Type Method Description Object
InvocationHandler. invoke(Object proxy, Method method, Object[] args)
Processes a method invocation on a proxy instance and returns the result. -
Uses of Method in java.rmi.server
Methods in java.rmi.server with parameters of type Method Modifier and Type Method Description Object
RemoteObjectInvocationHandler. invoke(Object proxy, Method method, Object[] args)
Processes a method invocation made on the encapsulating proxy instance,proxy
, and returns the result.Object
RemoteRef. invoke(Remote obj, Method method, Object[] params, long opnum)
Invoke a method. -
Uses of Method in javafx.beans.property.adapter
Methods in javafx.beans.property.adapter with parameters of type Method Modifier and Type Method Description JavaBeanBooleanPropertyBuilder
JavaBeanBooleanPropertyBuilder. getter(Method getter)
Set the getter method directly.JavaBeanDoublePropertyBuilder
JavaBeanDoublePropertyBuilder. getter(Method getter)
Set the getter method directly.JavaBeanFloatPropertyBuilder
JavaBeanFloatPropertyBuilder. getter(Method getter)
Set the getter method directly.JavaBeanIntegerPropertyBuilder
JavaBeanIntegerPropertyBuilder. getter(Method getter)
Set the getter method directly.JavaBeanLongPropertyBuilder
JavaBeanLongPropertyBuilder. getter(Method getter)
Set the getter method directly.JavaBeanObjectPropertyBuilder
JavaBeanObjectPropertyBuilder. getter(Method getter)
Set the getter method directly.JavaBeanStringPropertyBuilder
JavaBeanStringPropertyBuilder. getter(Method getter)
Set the getter method directly.ReadOnlyJavaBeanBooleanPropertyBuilder
ReadOnlyJavaBeanBooleanPropertyBuilder. getter(Method getter)
Set the getter method directly.ReadOnlyJavaBeanDoublePropertyBuilder
ReadOnlyJavaBeanDoublePropertyBuilder. getter(Method getter)
Set the getter method directly.ReadOnlyJavaBeanFloatPropertyBuilder
ReadOnlyJavaBeanFloatPropertyBuilder. getter(Method getter)
Set the getter method directly.ReadOnlyJavaBeanIntegerPropertyBuilder
ReadOnlyJavaBeanIntegerPropertyBuilder. getter(Method getter)
Set the getter method directly.ReadOnlyJavaBeanLongPropertyBuilder
ReadOnlyJavaBeanLongPropertyBuilder. getter(Method getter)
Set the getter method directly.ReadOnlyJavaBeanObjectPropertyBuilder<T>
ReadOnlyJavaBeanObjectPropertyBuilder. getter(Method getter)
Set the getter method directly.ReadOnlyJavaBeanStringPropertyBuilder
ReadOnlyJavaBeanStringPropertyBuilder. getter(Method getter)
Set the getter method directly.JavaBeanBooleanPropertyBuilder
JavaBeanBooleanPropertyBuilder. setter(Method setter)
Set the setter method directly.JavaBeanDoublePropertyBuilder
JavaBeanDoublePropertyBuilder. setter(Method setter)
Set the setter method directly.JavaBeanFloatPropertyBuilder
JavaBeanFloatPropertyBuilder. setter(Method setter)
Set the setter method directly.JavaBeanIntegerPropertyBuilder
JavaBeanIntegerPropertyBuilder. setter(Method setter)
Set the setter method directly.JavaBeanLongPropertyBuilder
JavaBeanLongPropertyBuilder. setter(Method setter)
Set the setter method directly.JavaBeanObjectPropertyBuilder
JavaBeanObjectPropertyBuilder. setter(Method setter)
Set the setter method directly.JavaBeanStringPropertyBuilder
JavaBeanStringPropertyBuilder. setter(Method setter)
Set the setter method directly. -
Uses of Method in javax.management
Methods in javax.management with parameters of type Method Modifier and Type Method Description Object
MBeanServerInvocationHandler. invoke(Object proxy, Method method, Object[] args)
Constructors in javax.management with parameters of type Method Constructor Description MBeanAttributeInfo(String name, String description, Method getter, Method setter)
This constructor takes the name of a simple attribute, and Method objects for reading and writing the attribute.MBeanOperationInfo(String description, Method method)
Constructs anMBeanOperationInfo
object. -
Uses of Method in javax.management.modelmbean
Constructors in javax.management.modelmbean with parameters of type Method Constructor Description ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter)
Constructs a ModelMBeanAttributeInfo object with a default descriptor.ModelMBeanAttributeInfo(String name, String description, Method getter, Method setter, Descriptor descriptor)
Constructs a ModelMBeanAttributeInfo object.ModelMBeanOperationInfo(String description, Method operationMethod)
Constructs a ModelMBeanOperationInfo object with a default descriptor.ModelMBeanOperationInfo(String description, Method operationMethod, Descriptor descriptor)
Constructs a ModelMBeanOperationInfo object. -
Uses of Method in javax.management.openmbean
Methods in javax.management.openmbean with parameters of type Method Modifier and Type Method Description Object
CompositeDataInvocationHandler. invoke(Object proxy, Method method, Object[] args)
-
Uses of Method in javax.xml.ws.spi
Methods in javax.xml.ws.spi with parameters of type Method Modifier and Type Method Description abstract Object
Invoker. invoke(Method m, Object... args)
JAX-WS runtime calls this method to do the actual web service invocation on endpoint instance. -
Uses of Method in jdk.dynalink.linker.support
Methods in jdk.dynalink.linker.support with parameters of type Method Modifier and Type Method Description static MethodHandle
Lookup. unreflect(MethodHandles.Lookup lookup, Method m)
Performs aMethodHandles.Lookup.unreflect(Method)
, converting any encounteredIllegalAccessException
into anIllegalAccessError
.MethodHandle
Lookup. unreflect(Method m)
Performs aMethodHandles.Lookup.unreflect(Method)
, converting any encounteredIllegalAccessException
into anIllegalAccessError
. -
Uses of Method in jdk.jshell.execution
Methods in jdk.jshell.execution with parameters of type Method Modifier and Type Method Description protected String
DirectExecutionControl. invoke(Method doitMethod)
Invoke the specified "doit-method", a static method with no parameters.protected String
LocalExecutionControl. invoke(Method doitMethod)
protected String
RemoteExecutionControl. invoke(Method doitMethod)
-