blob: 83bc86b6578c4bfc840284f725675a57be83b450 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2011 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* 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;
}
}