Uses of Class
java.lang.reflect.Method
-
Packages that use 方法 软件包 描述 java.beans 包含与开发 bean相关的类 - 基于JavaBeans™体系结构的组件。java.lang 提供对Java编程语言设计至关重要的类。java.lang.annotation 为Java编程语言注释工具提供库支持。java.lang.invoke java.lang.invoke包提供了与Java虚拟机交互的低级原语。java.lang.reflect 提供用于获取有关类和对象的反射信息的类和接口。java.rmi.server 提供用于支持RMI服务器端的类和接口。javax.management 提供Java Management Extensions的核心类。javax.management.modelmbean 提供ModelMBean类的定义。jdk.dynalink.linker.support 包含类,通过提供某些类的基本实现以及各种实用程序,使语言运行时更方便地实现自己的语言特定对象模型和类型转换。jdk.jshell.execution 为构建JShell执行引擎提供实现支持。 -
-
Uses of 方法 in java.beans
Methods in java.beans that return 方法 变量和类型 方法 描述 方法EventSetDescriptor. getAddListenerMethod()获取用于添加事件侦听器的方法。方法EventSetDescriptor. getGetListenerMethod()获取用于访问已注册事件侦听器的方法。方法IndexedPropertyDescriptor. getIndexedReadMethod()获取应该用于读取索引属性值的方法。方法IndexedPropertyDescriptor. getIndexedWriteMethod()获取应该用于编写索引属性值的方法。方法[]EventSetDescriptor. getListenerMethods()获取目标侦听器接口的方法。方法MethodDescriptor. getMethod()获取此MethodDescriptor封装的方法。方法PropertyDescriptor. getReadMethod()获取应该用于读取属性值的方法。方法EventSetDescriptor. getRemoveListenerMethod()获取用于删除事件侦听器的方法。方法PropertyDescriptor. getWriteMethod()获取应该用于写入属性值的方法。Methods in java.beans with parameters of type 方法 变量和类型 方法 描述 ObjectEventHandler. invoke(Object proxy, 方法 method, Object[] arguments)从事件中提取适当的属性值,并将其传递EventHandler此EventHandler关联的操作。voidIndexedPropertyDescriptor. setIndexedReadMethod(方法 readMethod)设置应该用于读取索引属性值的方法。voidIndexedPropertyDescriptor. setIndexedWriteMethod(方法 writeMethod)设置应该用于编写索引属性值的方法。voidPropertyDescriptor. setReadMethod(方法 readMethod)设置应该用于读取属性值的方法。voidPropertyDescriptor. setWriteMethod(方法 writeMethod)设置应该用于写入属性值的方法。Constructors in java.beans with parameters of type 方法 构造器 描述 EventSetDescriptor(String eventSetName, 类<?> listenerType, MethodDescriptor[] listenerMethodDescriptors, 方法 addListenerMethod, 方法 removeListenerMethod)创建一个EventSetDescriptor使用从无到有java.lang.reflect.MethodDescriptor个java.lang.Class对象。EventSetDescriptor(String eventSetName, 类<?> listenerType, 方法[] listenerMethods, 方法 addListenerMethod, 方法 removeListenerMethod)创建一个EventSetDescriptor使用从无到有java.lang.reflect.Method个java.lang.Class对象。EventSetDescriptor(String eventSetName, 类<?> listenerType, 方法[] listenerMethods, 方法 addListenerMethod, 方法 removeListenerMethod, 方法 getListenerMethod)此构造函数使用java.lang.reflect.Method和java.lang.Class对象从头开始创建EventSetDescriptor。IndexedPropertyDescriptor(String propertyName, 方法 readMethod, 方法 writeMethod, 方法 indexedReadMethod, 方法 indexedWriteMethod)此构造函数采用简单属性的名称,而Method对象用于读取和写入属性。MethodDescriptor(方法 method)构造一个MethodDescriptor从方法。MethodDescriptor(方法 method, ParameterDescriptor[] parameterDescriptors)从方法构造MethodDescriptor,为每个方法的参数提供描述性信息。PropertyDescriptor(String propertyName, 方法 readMethod, 方法 writeMethod)此构造函数采用简单属性的名称,而Method对象用于读取和写入属性。 -
Uses of 方法 in java.lang
Methods in java.lang that return 方法 变量和类型 方法 描述 方法Class. getDeclaredMethod(String name, 类<?>... parameterTypes)返回方法对象,该对象反映此类对象表示的类或接口的指定声明方法。方法[]Class. getDeclaredMethods()返回一个包含方法对象的数组,方法对象反映此类对象表示的类或接口的所有声明方法,包括公共,受保护,默认(包)访问和私有方法,但不包括继承的方法。方法Class. getEnclosingMethod()如果此类对象表示方法中的本地或匿名类,则返回表示基础类的直接封闭方法的方法对象。方法Class. getMethod(String name, 类<?>... parameterTypes)返回方法对象,该对象反映此类对象表示的类或接口的指定公共成员方法。方法[]Class. getMethods()返回一个包含方法对象的数组,方法对象反映此类对象所表示的类或接口的所有公共方法,包括由类或接口声明的那些以及从超类和超接口继承的那些。 -
Uses of 方法 in java.lang.annotation
Methods in java.lang.annotation that return 方法 变量和类型 方法 描述 方法AnnotationTypeMismatchException. element()返回错误键入元素的方法对象。Constructors in java.lang.annotation with parameters of type 方法 构造器 描述 AnnotationTypeMismatchException(方法 element, String foundType)为指定的注释类型元素和找到的数据类型构造AnnotationTypeMismatchException。 -
Uses of 方法 in java.lang.invoke
Methods in java.lang.invoke with parameters of type 方法 变量和类型 方法 描述 MethodHandleMethodHandles.Lookup. unreflect(方法 m)如果查找类具有权限,则将 direct method handle设置为 m 。MethodHandleMethodHandles.Lookup. unreflectSpecial(方法 m, 类<?> specialCaller)为反射方法生成方法句柄。 -
Uses of 方法 in java.lang.reflect
Methods in java.lang.reflect that return types with arguments of type 方法 变量和类型 方法 描述 TypeVariable<方法>[]Method. getTypeParameters()返回的数组TypeVariable对象表示通过此表示的一般声明声明的类型变量GenericDeclaration目的,在声明的顺序。Methods in java.lang.reflect with parameters of type 方法 变量和类型 方法 描述 ObjectInvocationHandler. invoke(Object proxy, 方法 method, Object[] args)处理代理实例上的方法调用并返回结果。 -
Uses of 方法 in java.rmi.server
Methods in java.rmi.server with parameters of type 方法 变量和类型 方法 描述 ObjectRemoteObjectInvocationHandler. invoke(Object proxy, 方法 method, Object[] args)处理在封装代理实例proxy上进行的方法调用,并返回结果。ObjectRemoteRef. invoke(Remote obj, 方法 method, Object[] params, long opnum)调用方法。 -
Uses of 方法 in javax.management
Constructors in javax.management with parameters of type 方法 构造器 描述 MBeanAttributeInfo(String name, String description, 方法 getter, 方法 setter)此构造函数采用简单属性的名称,以及用于读取和写入属性的Method对象。MBeanOperationInfo(String description, 方法 method)构造一个MBeanOperationInfo对象。 -
Uses of 方法 in javax.management.modelmbean
Constructors in javax.management.modelmbean with parameters of type 方法 构造器 描述 ModelMBeanAttributeInfo(String name, String description, 方法 getter, 方法 setter)使用默认描述符构造ModelMBeanAttributeInfo对象。ModelMBeanAttributeInfo(String name, String description, 方法 getter, 方法 setter, Descriptor descriptor)构造ModelMBeanAttributeInfo对象。ModelMBeanOperationInfo(String description, 方法 operationMethod)使用默认描述符构造ModelMBeanOperationInfo对象。ModelMBeanOperationInfo(String description, 方法 operationMethod, Descriptor descriptor)构造ModelMBeanOperationInfo对象。 -
Uses of 方法 in jdk.dynalink.linker.support
Methods in jdk.dynalink.linker.support with parameters of type 方法 变量和类型 方法 描述 static MethodHandleLookup. unreflect(MethodHandles.Lookup lookup, 方法 m)MethodHandleLookup. unreflect(方法 m) -
Uses of 方法 in jdk.jshell.execution
Methods in jdk.jshell.execution with parameters of type 方法 变量和类型 方法 描述 protected StringDirectExecutionControl. invoke(方法 doitMethod)调用指定的“doit-method”,一个没有参数的静态方法。
-