KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdi > internal > request > BreakpointRequestImpl


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdi.internal.request;
12
13
14 import org.eclipse.jdi.internal.VirtualMachineImpl;
15 import org.eclipse.jdi.internal.event.BreakpointEventImpl;
16
17 import com.sun.jdi.Locatable;
18 import com.sun.jdi.Location;
19 import com.sun.jdi.request.BreakpointRequest;
20
21 /**
22  * this class implements the corresponding interfaces
23  * declared by the JDI specification. See the com.sun.jdi package
24  * for more information.
25  *
26  */

27 public class BreakpointRequestImpl extends EventRequestImpl implements BreakpointRequest, Locatable {
28     /**
29      * Creates new BreakpointRequest.
30      */

31     public BreakpointRequestImpl(VirtualMachineImpl vmImpl) {
32         super("BreakpointRequest", vmImpl); //$NON-NLS-1$
33
}
34
35     /**
36      * @return Returns location of Breakpoint Request.
37      */

38     public Location location() {
39         return (Location)fLocationFilters.get(0);
40     }
41     
42     /**
43      * @return Returns JDWP EventKind.
44      */

45     protected final byte eventKind() {
46         return BreakpointEventImpl.EVENT_KIND;
47     }
48
49 }
50
Popular Tags