1 11 package org.eclipse.jdi.internal.event; 12 13 import java.io.DataInputStream ; 14 import java.io.IOException ; 15 16 import org.eclipse.jdi.internal.LocationImpl; 17 import org.eclipse.jdi.internal.MirrorImpl; 18 import org.eclipse.jdi.internal.ObjectReferenceImpl; 19 import org.eclipse.jdi.internal.ThreadReferenceImpl; 20 import org.eclipse.jdi.internal.VirtualMachineImpl; 21 import org.eclipse.jdi.internal.request.RequestID; 22 23 import com.sun.jdi.ObjectReference; 24 import com.sun.jdi.event.MonitorContendedEnterEvent; 25 26 31 public class MonitorContendedEnterEventImpl extends LocatableEventImpl implements MonitorContendedEnterEvent { 32 33 34 public static final byte EVENT_KIND = EVENT_MONITOR_CONTENDED_ENTER; 35 36 37 private ObjectReference fMonitor; 38 39 40 private MonitorContendedEnterEventImpl(VirtualMachineImpl vmImpl, RequestID requestID) { 41 super("MonitorContendedEnter", vmImpl, requestID); } 43 44 47 public static MonitorContendedEnterEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream dataInStream) throws IOException { 48 VirtualMachineImpl vmImpl = target.virtualMachineImpl(); 49 MonitorContendedEnterEventImpl event = new MonitorContendedEnterEventImpl(vmImpl, requestID); 50 event.fThreadRef = ThreadReferenceImpl.read(target, dataInStream); 51 event.fMonitor = ObjectReferenceImpl.readObjectRefWithTag(target, dataInStream); 52 event.fLocation = LocationImpl.read(target, dataInStream); 53 return event; 54 } 55 56 59 public ObjectReference monitor() { 60 return fMonitor; 61 } 62 } 63 | Popular Tags |