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.LocationImpl; 18 import org.eclipse.jdi.internal.MirrorImpl; 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.Locatable; 24 import com.sun.jdi.Location; 25 26 32 public abstract class LocatableEventImpl extends EventImpl implements Locatable { 33 34 protected LocationImpl fLocation; 35 36 39 protected LocatableEventImpl(String description, VirtualMachineImpl vmImpl, RequestID requestID) { 40 super(description, vmImpl, requestID); 41 } 42 43 46 public void readThreadAndLocation(MirrorImpl target, DataInputStream dataInStream) throws IOException { 47 fThreadRef = ThreadReferenceImpl.read(target, dataInStream); 48 fLocation = LocationImpl.read(target, dataInStream); 49 } 50 51 54 public Location location() { 55 return fLocation; 56 } 57 } 58 | Popular Tags |