blob: 1e0de02ebbce6fda6193a8e9c3fcb877a3826a62 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdi.internal.request;
import org.eclipse.jdi.internal.VirtualMachineImpl;
import org.eclipse.jdi.internal.event.EventImpl;
import org.eclipse.jdi.internal.event.MethodExitEventImpl;
import com.sun.jdi.request.MethodExitRequest;
/**
* this class implements the corresponding interfaces declared by the JDI
* specification. See the com.sun.jdi package for more information.
*
*/
public class MethodExitRequestImpl extends EventRequestImpl implements
MethodExitRequest {
/**
* Creates new MethodExitRequest.
*/
public MethodExitRequestImpl(VirtualMachineImpl vmImpl) {
super("MethodExitRequest", vmImpl); //$NON-NLS-1$
}
/**
* @return Returns JDWP EventKind.
*/
@Override
protected final byte eventKind() {
if (virtualMachine().canGetMethodReturnValues()) {
return EventImpl.EVENT_METHOD_EXIT_WITH_RETURN_VALUE;
}
return MethodExitEventImpl.EVENT_KIND;
}
}