接口的使用
com.sun.jdi.Method
使用 Method 的包
包
描述
这是 Java 调试接口 (JDI) 的核心包,它定义了值、类型和目标 VirtualMachine 本身的镜像——以及引导工具。
这个包定义了 JDI 事件和事件处理。
-
Method 在 com.sun.jdi 中的用法
com.sun.jdi 中返回 Method 的方法修饰符和类型方法描述ClassType.concreteMethodByName(String name, String signature) 返回具有给定名称和签名的单个非抽象Method可见类。Location.method()获取包含此位置的方法。返回类型中包含 Method 类型参数的 com.sun.jdi 中的方法修饰符和类型方法描述ReferenceType.allMethods()返回一个列表,其中包含在此类型中声明的每个Method及其超类、实现的接口和/或超接口。ReferenceType.methods()返回一个列表,其中包含直接在此类型中声明的每个Method。ReferenceType.methodsByName(String name) 返回一个列表,其中包含每个具有给定名称的可见Method。ReferenceType.methodsByName(String name, String signature) 返回一个列表,其中包含每个具有给定名称和签名的可见Method。ReferenceType.visibleMethods()返回一个列表,其中包含此类型声明或继承的每个Method。com.sun.jdi 中的方法,参数类型为 Method修饰符和类型方法描述ClassType.invokeMethod(ThreadReference thread, Method method, List<? extends Value> arguments, int options) 在目标 VM 中调用指定的静态Method。default ValueInterfaceType.invokeMethod(ThreadReference thread, Method method, List<? extends Value> arguments, int options) 在目标 VM 中调用指定的静态Method。ObjectReference.invokeMethod(ThreadReference thread, Method method, List<? extends Value> arguments, int options) 在目标 VM 中的此对象上调用指定的Method。ClassType.newInstance(ThreadReference thread, Method method, List<? extends Value> arguments, int options) 使用目标 VM 中的给定构造函数Method构造此类型的新实例。 -
Method 在 com.sun.jdi.event 中的用法
com.sun.jdi.event 中返回 Method 的方法