blob: a046d546a688d7e3f904f36a1524c1cf5e001ab0 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2005 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.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.
*/
public BreakpointRequestImpl(VirtualMachineImpl vmImpl) {
super("BreakpointRequest", vmImpl); //$NON-NLS-1$
}
/**
* @return Returns location of Breakpoint Request.
*/
public Location location() {
return (Location)fLocationFilters.get(0);
}
/**
* @return Returns JDWP EventKind.
*/
protected final byte eventKind() {
return BreakpointEventImpl.EVENT_KIND;
}
}