Module jdk.jdi
Package com.sun.jdi

Interface Mirror

所有已知的子接口:
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是该包的接口层次结构的根。镜像可以是目标虚拟机中的对象的代理(例如,ObjectReference)、原始值(例如,IntegerValue)、类型(例如,ReferenceType)、动态应用程序状态(例如,StackFrame)甚至是特定于调试器的构造(例如,BreakpointRequest)。VirtualMachine本身也被视为一个镜像,代表目标虚拟机的复合状态。

不能保证目标虚拟机中的特定实体将映射到Mirror的单个实例。实现者可以自由决定某个或所有镜像是否将用于某些或所有镜像。此接口的客户端应始终使用equals来比较两个镜像是否相等。

Mirror上的任何方法,如果直接或间接地(例如,作为List中的元素)将Mirror作为参数,则如果镜像来自不同的虚拟机,将抛出VMMismatchException

自:
1.3
参见:
  • Method Summary

    Modifier and Type
    Method
    Description
    返回描述此镜像的字符串
    获取此Mirror所属的VirtualMachine。
  • Method Details

    • virtualMachine

      VirtualMachine virtualMachine()
      获取此Mirror所属的VirtualMachine。Mirror必须与VirtualMachine关联才具有任何意义。
      返回:
      此镜像是代理的VirtualMachine
    • toString

      String toString()
      返回描述此镜像的字符串
      覆盖:
      toString 在类 Object
      返回:
      描述此镜像的字符串。