KickJava   Java API By Example, From Geeks To Geeks.

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


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
16 import com.sun.jdi.Field;
17 import com.sun.jdi.request.WatchpointRequest;
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 abstract class WatchpointRequestImpl extends EventRequestImpl implements WatchpointRequest {
26     /**
27      * Creates new WatchpointRequest, only used by subclasses.
28      */

29     public WatchpointRequestImpl(String JavaDoc description, VirtualMachineImpl vmImpl) {
30         super(description, vmImpl);
31     }
32     
33     /**
34      * @return Returns field for which Watchpoint requests is issued.
35      */

36     public Field field() {
37         return (Field)fFieldFilters.get(0);
38     }
39 }
40
Popular Tags