KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > debug > core > IJavaWatchpoint


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.jdt.debug.core;
12
13  
14 import org.eclipse.core.runtime.CoreException;
15 import org.eclipse.debug.core.model.IDebugTarget;
16 import org.eclipse.debug.core.model.IWatchpoint;
17
18 /**
19  * A breakpoint on a field. If a watchpoint is an access watchpoint,
20  * it will suspend execution when its field is accessed. If a watchpoint
21  * is a modification watchpoint, it will suspend execution when its field
22  * is modified.
23  * <p>
24  * Clients are not intended to implement this interface.
25  * </p>
26  * <p>
27  * Since 3.1, <code>IJavaWatchpoint</code> also implements
28  * {@link org.eclipse.debug.core.model.IWatchpoint}.
29  * </p>
30  * @since 2.0
31  */

32 public interface IJavaWatchpoint extends IJavaLineBreakpoint, IWatchpoint {
33     /**
34      * Returns the name of the field associated with this watchpoint
35      *
36      * @return field the name of the field on which this watchpoint is installed
37      * @exception CoreException if unable to access the property on
38      * this breakpoint's underlying marker
39      */

40     public String JavaDoc getFieldName() throws CoreException;
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 }
52
53
Popular Tags