Package org.eclipse.jdt.debug.core
Interface IJavaWatchpoint
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable,org.eclipse.debug.core.model.IBreakpoint,IJavaBreakpoint,IJavaLineBreakpoint,org.eclipse.debug.core.model.ILineBreakpoint,org.eclipse.debug.core.model.ITriggerPoint,org.eclipse.debug.core.model.IWatchpoint
public interface IJavaWatchpoint
extends IJavaLineBreakpoint, org.eclipse.debug.core.model.IWatchpoint
A breakpoint on a field. If a watchpoint is an access watchpoint, it will
suspend execution when its field is accessed. If a watchpoint is a
modification watchpoint, it will suspend execution when its field is
modified.
Since 3.1, IJavaWatchpoint also implements
IWatchpoint.
- Since:
- 2.0
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Field Summary
Fields inherited from interface org.eclipse.debug.core.model.IBreakpoint
BREAKPOINT_MARKER, ENABLED, ID, LINE_BREAKPOINT_MARKER, PERSISTED, REGISTEREDFields inherited from interface org.eclipse.jdt.debug.core.IJavaBreakpoint
RESUME_ON_HIT, SUSPEND_THREAD, SUSPEND_VMFields inherited from interface org.eclipse.debug.core.model.ITriggerPoint
TRIGGERPOINT -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the field associated with this watchpointbooleanisAccessSuspend(org.eclipse.debug.core.model.IDebugTarget target) Returns whether this breakpoint last suspended in this target due to an access (true) or modification (false).Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.debug.core.model.IBreakpoint
delete, getMarker, getModelIdentifier, isEnabled, isPersisted, isRegistered, setEnabled, setMarker, setPersisted, setRegisteredMethods inherited from interface org.eclipse.jdt.debug.core.IJavaBreakpoint
addBreakpointListener, addInstanceFilter, getBreakpointListeners, getHitCount, getInstanceFilters, getSuspendPolicy, getThreadFilter, getThreadFilters, getTypeName, isDisableOnHit, isInstalled, removeBreakpointListener, removeInstanceFilter, removeThreadFilter, setDisableOnHit, setHitCount, setSuspendPolicy, setThreadFilter, supportsInstanceFilters, supportsThreadFiltersMethods inherited from interface org.eclipse.jdt.debug.core.IJavaLineBreakpoint
getCondition, isConditionEnabled, isConditionSuspendOnTrue, setCondition, setConditionEnabled, setConditionSuspendOnTrue, supportsConditionMethods inherited from interface org.eclipse.debug.core.model.ILineBreakpoint
getCharEnd, getCharStart, getLineNumberMethods inherited from interface org.eclipse.debug.core.model.ITriggerPoint
isTriggerPoint, setTriggerPointMethods inherited from interface org.eclipse.debug.core.model.IWatchpoint
isAccess, isModification, setAccess, setModification, supportsAccess, supportsModification
-
Method Details
-
getFieldName
Returns the name of the field associated with this watchpoint- Returns:
- field the name of the field on which this watchpoint is installed
- Throws:
org.eclipse.core.runtime.CoreException- if unable to access the property on this breakpoint's underlying marker
-
isAccessSuspend
boolean isAccessSuspend(org.eclipse.debug.core.model.IDebugTarget target) Returns whether this breakpoint last suspended in this target due to an access (true) or modification (false).- Parameters:
target- the debug target- Returns:
trueif this watchpoint last suspended the given target due to a field access;falseif this watchpoint last suspended the given target due to a modification access or if this watchpoint hasn't suspended the given target.
-