-  
       
- All Superinterfaces:
 -  
         
Event,Locatable,LocatableEvent,Mirror 
- All Known Subinterfaces:
 -  
         
AccessWatchpointEvent,ModificationWatchpointEvent 
public interface WatchpointEvent extends LocatableEvent
目标VM中的线程遇到的字段触发事件的通知。- 从以下版本开始:
 - 1.3
 - 另请参见:
 -  
         
EventQueue,VirtualMachine 
 
-  
        
       
-  
             
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 字段字段()返回即将访问/修改的字段。ObjectReferenceobject()返回其字段即将被访问/修改的对象。ValuevalueCurrent()该字段的当前值。-  
               
声明方法的接口 com.sun.jdi.event.LocatableEvent
thread 
-  
               
声明方法的接口 com.sun.jdi.Mirror
toString, virtualMachine 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
方法详细信息
-  
字段
字段 field()
返回即将访问/修改的字段。- 结果
 -  
              
字段,它镜像目标VM中的字段。 - 异常
 -  
              
ObjectCollectedException- 如果类被垃圾收集,可能会抛出。 
 
-  
object
ObjectReference object()
返回其字段即将被访问/修改的对象。 返回null是访问静态字段。- 结果
 -  
              
ObjectReference,它镜像目标VM中的事件对象。 
 
-  
valueCurrent
Value valueCurrent()
该字段的当前值。- 异常
 -  
              
ObjectCollectedException- 如果对象或类已被垃圾收集。 
 
 -  
 
 -