1 11 package org.eclipse.jdi.internal.event; 12 13 14 import java.io.DataInputStream ; 15 import java.io.IOException ; 16 17 import org.eclipse.jdi.internal.MirrorImpl; 18 import org.eclipse.jdi.internal.ValueImpl; 19 import org.eclipse.jdi.internal.VirtualMachineImpl; 20 import org.eclipse.jdi.internal.request.RequestID; 21 22 import com.sun.jdi.Value; 23 import com.sun.jdi.event.ModificationWatchpointEvent; 24 25 31 public class ModificationWatchpointEventImpl extends WatchpointEventImpl implements ModificationWatchpointEvent { 32 33 public static final byte EVENT_KIND = EVENT_FIELD_MODIFICATION; 34 35 36 private ValueImpl fValueToBe; 37 38 41 private ModificationWatchpointEventImpl(VirtualMachineImpl vmImpl, RequestID requestID) { 42 super("ModificationWatchpointEvent", vmImpl, requestID); } 44 45 48 public static WatchpointEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream dataInStream) throws IOException { 49 VirtualMachineImpl vmImpl = target.virtualMachineImpl(); 50 ModificationWatchpointEventImpl event = new ModificationWatchpointEventImpl(vmImpl, requestID); 51 event.readWatchpointEventFields(target, dataInStream); 52 event.fValueToBe = ValueImpl.readWithTag(target, dataInStream); 53 return event; 54 } 55 56 59 public Value valueToBe() { 60 return fValueToBe; 61 } 62 } 63 | Popular Tags |