MethodExitRequestImpl.java :  » IDE-Eclipse » All-Other-packages » org » eclipse » jdi » internal » request » Java Open Source

Java Open Source » IDE Eclipse » All Other packages 
All Other packages » org » eclipse » jdi » internal » request » MethodExitRequestImpl.java
/*******************************************************************************
 * Copyright (c) 2000, 2007 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.
   */
  protected final byte eventKind() {
    if (virtualMachine().canGetMethodReturnValues()) {
      return EventImpl.EVENT_METHOD_EXIT_WITH_RETURN_VALUE;
    }
    return MethodExitEventImpl.EVENT_KIND;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.