- 所有已知的子接口:
AccessWatchpointEvent,AccessWatchpointRequest,ArrayReference,ArrayType,BooleanType,BooleanValue,BreakpointEvent,BreakpointRequest,ByteType,ByteValue,CharType,CharValue,ClassLoaderReference,ClassObjectReference,ClassPrepareEvent,ClassPrepareRequest,ClassType,ClassUnloadEvent,ClassUnloadRequest,DoubleType,DoubleValue,Event,EventQueue,EventRequest,EventRequestManager,EventSet,ExceptionEvent,ExceptionRequest,Field,FloatType,FloatValue,IntegerType,IntegerValue,InterfaceType,LocalVariable,LocatableEvent,Location,LongType,LongValue,Method,MethodEntryEvent,MethodEntryRequest,MethodExitEvent,MethodExitRequest,ModificationWatchpointEvent,ModificationWatchpointRequest,ModuleReference,MonitorContendedEnteredEvent,MonitorContendedEnteredRequest,MonitorContendedEnterEvent,MonitorContendedEnterRequest,MonitorInfo,MonitorWaitedEvent,MonitorWaitedRequest,MonitorWaitEvent,MonitorWaitRequest,ObjectReference,PathSearchingVirtualMachine,PrimitiveType,PrimitiveValue,ReferenceType,ShortType,ShortValue,StackFrame,StepEvent,StepRequest,StringReference,ThreadDeathEvent,ThreadDeathRequest,ThreadGroupReference,ThreadReference,ThreadStartEvent,ThreadStartRequest,Type,TypeComponent,Value,VirtualMachine,VMDeathEvent,VMDeathRequest,VMDisconnectEvent,VMStartEvent,VoidType,VoidValue,WatchpointEvent,WatchpointRequest
public interface Mirror
调试器用来检查或操作另一个虚拟机中的某些实体的代理。 Mirror 是此包的接口层次结构的根。镜像可以是目标 VM 中对象的代理(
ObjectReference )、原始值(例如,IntegerValue )、类型(例如,ReferenceType )、动态应用程序状态(例如,StackFrame ),甚至特定于调试器的构造(例如,BreakpointRequest )。 VirtualMachine 本身也被认为是一个镜像,代表目标 VM 的复合状态。
无法保证目标 VM 中的特定实体将映射到 Mirror 的单个实例。实施者可以自由决定是否将单个镜像用于部分或所有镜像。此接口的客户端应始终使用 equals 比较两个镜像是否相等。
如果镜像来自不同的虚拟机,则 Mirror 上直接或间接将 Mirror 作为参数(例如,作为 List 中的元素)的任何方法都将抛出 VMMismatchException 。
- 自从:
- 1.3
- 参见:
-
方法总结
-
方法详情
-
virtualMachine
VirtualMachine virtualMachine()获取此 Mirror 所属的 VirtualMachine。 Mirror 必须与 VirtualMachine 相关联才能具有任何意义。- 返回:
-
此镜像为其代理的
VirtualMachine。
-
toString
String toString()返回描述此镜像的字符串
-