01: /*******************************************************************************
02: * Copyright (c) 2000, 2007 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.request;
11:
12: import org.eclipse.jdi.internal.VirtualMachineImpl;
13: import org.eclipse.jdi.internal.event.EventImpl;
14: import org.eclipse.jdi.internal.event.MethodExitEventImpl;
15:
16: import com.sun.jdi.request.MethodExitRequest;
17:
18: /**
19: * this class implements the corresponding interfaces
20: * declared by the JDI specification. See the com.sun.jdi package
21: * for more information.
22: *
23: */
24: public class MethodExitRequestImpl extends EventRequestImpl implements
25: MethodExitRequest {
26: /**
27: * Creates new MethodExitRequest.
28: */
29: public MethodExitRequestImpl(VirtualMachineImpl vmImpl) {
30: super ("MethodExitRequest", vmImpl); //$NON-NLS-1$
31: }
32:
33: /**
34: * @return Returns JDWP EventKind.
35: */
36: protected final byte eventKind() {
37: if (virtualMachine().canGetMethodReturnValues()) {
38: return EventImpl.EVENT_METHOD_EXIT_WITH_RETURN_VALUE;
39: }
40: return MethodExitEventImpl.EVENT_KIND;
41: }
42: }
|