01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdi.internal.request;
11:
12: import org.eclipse.jdi.internal.VirtualMachineImpl;
13: import org.eclipse.jdi.internal.event.BreakpointEventImpl;
14:
15: import com.sun.jdi.Locatable;
16: import com.sun.jdi.Location;
17: import com.sun.jdi.request.BreakpointRequest;
18:
19: /**
20: * this class implements the corresponding interfaces
21: * declared by the JDI specification. See the com.sun.jdi package
22: * for more information.
23: *
24: */
25: public class BreakpointRequestImpl extends EventRequestImpl implements
26: BreakpointRequest, Locatable {
27: /**
28: * Creates new BreakpointRequest.
29: */
30: public BreakpointRequestImpl(VirtualMachineImpl vmImpl) {
31: super ("BreakpointRequest", vmImpl); //$NON-NLS-1$
32: }
33:
34: /**
35: * @return Returns location of Breakpoint Request.
36: */
37: public Location location() {
38: return (Location) fLocationFilters.get(0);
39: }
40:
41: /**
42: * @return Returns JDWP EventKind.
43: */
44: protected final byte eventKind() {
45: return BreakpointEventImpl.EVENT_KIND;
46: }
47:
48: }
|