blob: c22586e6b82e4b0a15ac7936f1840efba12f2d25 [file] [log] [blame]
package org.eclipse.jdi.internal.event;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import com.sun.jdi.*;
import com.sun.jdi.event.*;
import com.sun.jdi.connect.*;
import com.sun.jdi.request.*;
import org.eclipse.jdi.internal.*;
import org.eclipse.jdi.internal.jdwp.*;
import org.eclipse.jdi.internal.request.*;
import org.eclipse.jdi.internal.request.*;
import java.io.*;
/**
* this class implements the corresponding interfaces
* declared by the JDI specification. See the com.sun.jdi package
* for more information.
*
*/
public class VMStartEventImpl extends EventImpl implements VMStartEvent {
/** Jdwp Event Kind. */
public static final byte EVENT_KIND = EVENT_VM_START;
/**
* Creates new VMStartEventImpl.
*/
private VMStartEventImpl(VirtualMachineImpl vmImpl, RequestID requestID) {
super("VMStartEvent", vmImpl, requestID);
}
/**
* @return Creates, reads and returns new EventImpl, of which requestID has already been read.
*/
public static VMStartEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream dataInStream) throws IOException {
VirtualMachineImpl vmImpl = target.virtualMachineImpl();
VMStartEventImpl event = new VMStartEventImpl(vmImpl, requestID);
event.fThreadRef = ThreadReferenceImpl.read(target, dataInStream);
return event;
}
}