接口的使用
com.sun.jdi.Value
使用 Value 的包
包
描述
这是 Java 调试接口 (JDI) 的核心包,它定义了值、类型和目标 VirtualMachine 本身的镜像——以及引导工具。
这个包定义了 JDI 事件和事件处理。
-
Value 在 com.sun.jdi 中的用法
com.sun.jdi 中 Value 的子接口修饰符和类型接口描述interface
提供对目标 VM 中数组对象及其组件的访问。interface
提供对目标 VM 中原始boolean
值的访问。interface
提供对目标 VM 中原始byte
值的访问。interface
提供对目标 VM 中原始char
值的访问。interface
来自目标 VM 的类加载器对象。interface
来自目标 VM 的 java.lang.Class 实例。interface
提供对目标 VM 中原始double
值的访问。interface
提供对目标 VM 中原始float
值的访问。interface
提供对目标 VM 中原始int
值的访问。interface
提供对目标 VM 中原始long
值的访问。interface
目标 VM 中的模块。interface
当前存在于目标 VM 中的对象。interface
分配给目标 VM 中原始类型的字段或变量的值。interface
提供对目标 VM 中原始short
值的访问。interface
来自目标 VM 的字符串对象。interface
来自目标 VM 的线程组对象。interface
来自目标 VM 的线程对象。interface
提供对目标 VM 中原始void
值的访问。com.sun.jdi 中返回 Value 的方法修饰符和类型方法描述ArrayReference.getValue
(int index) 返回数组组件值。获取此对象中给定实例或静态字段的值。StackFrame.getValue
(LocalVariable variable) 在此帧中获取LocalVariable
的Value
。ClassType.invokeMethod
(ThreadReference thread, Method method, List<? extends Value> arguments, int options) 在目标 VM 中调用指定的静态Method
。default Value
InterfaceType.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
。返回类型中包含 Value 类型参数的 com.sun.jdi 中的方法修饰符和类型方法描述StackFrame.getArgumentValues()
返回此帧中所有参数的值。ArrayReference.getValues()
返回此数组中的所有组件。ArrayReference.getValues
(int index, int length) 返回一系列数组组件。获取此对象中多个实例和/或静态字段的值。StackFrame.getValues
(List<? extends LocalVariable> variables) 返回此帧中多个局部变量的值。com.sun.jdi 中的方法,参数类型为 Value修饰符和类型方法描述void
ThreadReference.forceEarlyReturn
(Value value) 强制方法在到达返回语句之前返回。void
用另一个值替换数组组件。void
为静态字段分配一个值。void
设置此对象中给定实例或静态字段的值。void
StackFrame.setValue
(LocalVariable variable, Value value) 在此帧中设置LocalVariable
的Value
。com.sun.jdi 中的方法参数,类型参数为 Value修饰符和类型方法描述ClassType.invokeMethod
(ThreadReference thread, Method method, List<? extends Value> arguments, int options) 在目标 VM 中调用指定的静态Method
。default Value
InterfaceType.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
构造此类型的新实例。void
用其他值替换一系列数组组件。void
用其他值替换所有数组组件。 -
Value 在 com.sun.jdi.event 中的用法
com.sun.jdi.event 中返回 Value 的方法修饰符和类型方法描述MethodExitEvent.returnValue()
返回该方法将返回的值。WatchpointEvent.valueCurrent()
字段的当前值。ModificationWatchpointEvent.valueToBe()
指令完成时将分配给该字段的值。