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.jdt.debug.core;
11:
12: import org.eclipse.core.runtime.CoreException;
13: import org.eclipse.debug.core.model.IDebugTarget;
14: import org.eclipse.debug.core.model.IWatchpoint;
15:
16: /**
17: * A breakpoint on a field. If a watchpoint is an access watchpoint,
18: * it will suspend execution when its field is accessed. If a watchpoint
19: * is a modification watchpoint, it will suspend execution when its field
20: * is modified.
21: * <p>
22: * Clients are not intended to implement this interface.
23: * </p>
24: * <p>
25: * Since 3.1, <code>IJavaWatchpoint</code> also implements
26: * {@link org.eclipse.debug.core.model.IWatchpoint}.
27: * </p>
28: * @since 2.0
29: */
30: public interface IJavaWatchpoint extends IJavaLineBreakpoint,
31: IWatchpoint {
32: /**
33: * Returns the name of the field associated with this watchpoint
34: *
35: * @return field the name of the field on which this watchpoint is installed
36: * @exception CoreException if unable to access the property on
37: * this breakpoint's underlying marker
38: */
39: public String getFieldName() throws CoreException;
40:
41: /**
42: * Returns whether this breakpoint last suspended in this target due to an access
43: * (<code>true</code>) or modification (<code>false</code>).
44: *
45: * @return <code>true</code> if this watchpoint last suspended the given
46: * target due to a field access; <code>false</code> if this watchpoint last
47: * suspended the given target due to a modification access or if this
48: * watchpoint hasn't suspended the given target.
49: */
50: public boolean isAccessSuspend(IDebugTarget target);
51: }
|