org.eclipse.cdt.debug.internal.core.breakpoints
Class CWatchpoint

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.debug.core.model.Breakpoint
          extended by org.eclipse.cdt.debug.internal.core.breakpoints.CBreakpoint
              extended by org.eclipse.cdt.debug.internal.core.breakpoints.CWatchpoint
All Implemented Interfaces:
ICBreakpoint, ICWatchpoint, org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.IDebugEventSetListener, org.eclipse.debug.core.model.IBreakpoint, org.eclipse.debug.core.model.ILineBreakpoint

public class CWatchpoint
extends CBreakpoint
implements ICWatchpoint

A watchpoint specific to the C/C++ debug model.


Field Summary
 
Fields inherited from interface org.eclipse.cdt.debug.core.model.ICWatchpoint
EXPRESSION, READ, WRITE
 
Fields inherited from interface org.eclipse.cdt.debug.core.model.ICBreakpoint
CONDITION, IGNORE_COUNT, INSTALL_COUNT, MODULE, SOURCE_HANDLE, THREAD_ID
 
Fields inherited from interface org.eclipse.debug.core.model.IBreakpoint
BREAKPOINT_MARKER, ENABLED, ID, LINE_BREAKPOINT_MARKER, PERSISTED, REGISTERED
 
Fields inherited from interface org.eclipse.debug.core.model.IBreakpoint
BREAKPOINT_MARKER, ENABLED, ID, LINE_BREAKPOINT_MARKER, PERSISTED, REGISTERED
 
Constructor Summary
CWatchpoint()
          Constructor for CWatchpoint.
CWatchpoint(org.eclipse.core.resources.IResource resource, java.util.Map attributes, boolean add)
          Constructor for CWatchpoint.
 
Method Summary
 int getCharEnd()
           
 int getCharStart()
           
 java.lang.String getExpression()
          Returns the watchpoint's expression.
 int getLineNumber()
           
static java.lang.String getMarkerType()
          Returns the type of marker associated with this type of breakpoints
 boolean isReadType()
          Returns whether this watchppoint is a read watchpoint.
 boolean isWriteType()
          Returns whether this watchppoint is a write watchpoint.
 
Methods inherited from class org.eclipse.cdt.debug.internal.core.breakpoints.CBreakpoint
createMarker, decrementInstallCount, fireChanged, getCondition, getIgnoreCount, getInstallCount, getModelIdentifier, getModule, getSourceHandle, getTargetFilters, getThreadFilters, getThreadId, handleDebugEvents, incrementInstallCount, isConditional, isInstalled, register, removeTargetFilter, removeThreadFilters, resetInstallCount, setCondition, setIgnoreCount, setModule, setSourceHandle, setTargetFilter, setThreadFilters, setThreadId
 
Methods inherited from class org.eclipse.debug.core.model.Breakpoint
delete, equals, getMarker, hashCode, isEnabled, isPersisted, isRegistered, setEnabled, setMarker, setPersisted, setRegistered
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.cdt.debug.core.model.ICBreakpoint
decrementInstallCount, getCondition, getIgnoreCount, getModule, getSourceHandle, getTargetFilters, getThreadFilters, getThreadId, incrementInstallCount, isConditional, isInstalled, removeTargetFilter, removeThreadFilters, resetInstallCount, setCondition, setIgnoreCount, setModule, setSourceHandle, setTargetFilter, setThreadFilters, setThreadId
 
Methods inherited from interface org.eclipse.debug.core.model.IBreakpoint
delete, getMarker, getModelIdentifier, isEnabled, isPersisted, isRegistered, setEnabled, setMarker, setPersisted, setRegistered
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.debug.core.model.IBreakpoint
delete, getMarker, getModelIdentifier, isEnabled, isPersisted, isRegistered, setEnabled, setMarker, setPersisted, setRegistered
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

CWatchpoint

public CWatchpoint()
Constructor for CWatchpoint.


CWatchpoint

public CWatchpoint(org.eclipse.core.resources.IResource resource,
                   java.util.Map attributes,
                   boolean add)
            throws org.eclipse.core.runtime.CoreException
Constructor for CWatchpoint.

Throws:
org.eclipse.core.runtime.CoreException
Method Detail

isWriteType

public boolean isWriteType()
                    throws org.eclipse.core.runtime.CoreException
Description copied from interface: ICWatchpoint
Returns whether this watchppoint is a write watchpoint.

Specified by:
isWriteType in interface ICWatchpoint
Returns:
whether this watchppoint is a write watchpoint
Throws:
org.eclipse.core.runtime.CoreException

isReadType

public boolean isReadType()
                   throws org.eclipse.core.runtime.CoreException
Description copied from interface: ICWatchpoint
Returns whether this watchppoint is a read watchpoint.

Specified by:
isReadType in interface ICWatchpoint
Returns:
whether this watchppoint is a read watchpoint
Throws:
org.eclipse.core.runtime.CoreException

getExpression

public java.lang.String getExpression()
                               throws org.eclipse.core.runtime.CoreException
Description copied from interface: ICWatchpoint
Returns the watchpoint's expression.

Specified by:
getExpression in interface ICWatchpoint
Returns:
the expression of this watchpoint
Throws:
org.eclipse.core.runtime.CoreException

getMarkerType

public static java.lang.String getMarkerType()
Returns the type of marker associated with this type of breakpoints


getLineNumber

public int getLineNumber()
                  throws org.eclipse.core.runtime.CoreException
Specified by:
getLineNumber in interface org.eclipse.debug.core.model.ILineBreakpoint
Throws:
org.eclipse.core.runtime.CoreException

getCharStart

public int getCharStart()
                 throws org.eclipse.core.runtime.CoreException
Specified by:
getCharStart in interface org.eclipse.debug.core.model.ILineBreakpoint
Throws:
org.eclipse.core.runtime.CoreException

getCharEnd

public int getCharEnd()
               throws org.eclipse.core.runtime.CoreException
Specified by:
getCharEnd in interface org.eclipse.debug.core.model.ILineBreakpoint
Throws:
org.eclipse.core.runtime.CoreException