01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdi.internal.event;
11:
12: import java.io.DataInputStream;
13:
14: import org.eclipse.jdi.internal.MirrorImpl;
15: import org.eclipse.jdi.internal.VirtualMachineImpl;
16: import org.eclipse.jdi.internal.request.RequestID;
17:
18: import com.sun.jdi.event.VMDeathEvent;
19:
20: /**
21: * this class implements the corresponding interfaces
22: * declared by the JDI specification. See the com.sun.jdi package
23: * for more information.
24: *
25: */
26: public class VMDeathEventImpl extends EventImpl implements VMDeathEvent {
27: /** Jdwp Event Kind. */
28: public static final byte EVENT_KIND = EVENT_VM_DEATH;
29:
30: /**
31: * Creates new VMDeathEventImpl.
32: */
33: public VMDeathEventImpl(VirtualMachineImpl vmImpl,
34: RequestID requestID) {
35: super ("VMDeathEvent", vmImpl, requestID); //$NON-NLS-1$
36: }
37:
38: /**
39: * @return Creates, reads and returns new EventImpl, of which requestID has already been read.
40: */
41: public static VMDeathEventImpl read(MirrorImpl target,
42: RequestID requestID, DataInputStream dataInStream) {
43: VirtualMachineImpl vmImpl = target.virtualMachineImpl();
44: VMDeathEventImpl event = new VMDeathEventImpl(vmImpl, requestID);
45: return event;
46: }
47: }
|