KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdi > internal > request > MethodExitRequestImpl


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdi.internal.request;
12
13
14 import org.eclipse.jdi.internal.VirtualMachineImpl;
15 import org.eclipse.jdi.internal.event.EventImpl;
16 import org.eclipse.jdi.internal.event.MethodExitEventImpl;
17
18 import com.sun.jdi.request.MethodExitRequest;
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 MethodExitRequestImpl extends EventRequestImpl implements MethodExitRequest {
27     /**
28      * Creates new MethodExitRequest.
29      */

30     public MethodExitRequestImpl(VirtualMachineImpl vmImpl) {
31         super("MethodExitRequest", vmImpl); //$NON-NLS-1$
32
}
33
34     /**
35      * @return Returns JDWP EventKind.
36      */

37     protected final byte eventKind() {
38         if (virtualMachine().canGetMethodReturnValues()) {
39             return EventImpl.EVENT_METHOD_EXIT_WITH_RETURN_VALUE;
40         }
41         return MethodExitEventImpl.EVENT_KIND;
42     }
43 }
44
Popular Tags