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:
14: import com.sun.jdi.Field;
15: import com.sun.jdi.request.WatchpointRequest;
16:
17: /**
18: * this class implements the corresponding interfaces
19: * declared by the JDI specification. See the com.sun.jdi package
20: * for more information.
21: *
22: */
23: public abstract class WatchpointRequestImpl extends EventRequestImpl
24: implements WatchpointRequest {
25: /**
26: * Creates new WatchpointRequest, only used by subclasses.
27: */
28: public WatchpointRequestImpl(String description,
29: 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: }
|