blob: 77045922ede6fe71599c524d8c9d8d405c0330ac [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2015 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.BreakpointEventImpl;
import com.sun.jdi.Locatable;
import com.sun.jdi.Location;
import com.sun.jdi.request.BreakpointRequest;
/**
* this class implements the corresponding interfaces declared by the JDI
* specification. See the com.sun.jdi package for more information.
*
*/
public class BreakpointRequestImpl extends EventRequestImpl implements
BreakpointRequest, Locatable {
/**
* Creates new BreakpointRequest.
* @param vmImpl the VM
*/
public BreakpointRequestImpl(VirtualMachineImpl vmImpl) {
super("BreakpointRequest", vmImpl); //$NON-NLS-1$
}
/**
* @return Returns location of Breakpoint Request.
*/
@Override
public Location location() {
return fLocationFilters.get(0);
}
/**
* @return Returns JDWP EventKind.
*/
@Override
protected final byte eventKind() {
return BreakpointEventImpl.EVENT_KIND;
}
}