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.VirtualMachineImpl; 19 import org.eclipse.jdi.internal.request.RequestID; 20 21 import com.sun.jdi.Method; 22 import com.sun.jdi.event.MethodEntryEvent; 23 24 30 public class MethodEntryEventImpl extends LocatableEventImpl implements MethodEntryEvent { 31 32 public static final byte EVENT_KIND = EVENT_METHOD_ENTRY; 33 34 37 private MethodEntryEventImpl(VirtualMachineImpl vmImpl, RequestID requestID) { 38 super("MethodEntryEvent", vmImpl, requestID); } 40 41 44 public static MethodEntryEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream dataInStream) throws IOException { 45 VirtualMachineImpl vmImpl = target.virtualMachineImpl(); 46 MethodEntryEventImpl event = new MethodEntryEventImpl(vmImpl, requestID); 47 event.readThreadAndLocation(target, dataInStream); 48 return event; 49 } 50 51 54 public Method method() { 55 return fLocation.method(); 56 } 57 } 58 | Popular Tags |