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

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.AbstractLineBreakpoint
All Implemented Interfaces:
ICBreakpoint, ICLineBreakpoint, org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.IDebugEventSetListener, org.eclipse.debug.core.model.IBreakpoint, org.eclipse.debug.core.model.ILineBreakpoint
Direct Known Subclasses:
CAddressBreakpoint, CFunctionBreakpoint, CLineBreakpoint

public abstract class AbstractLineBreakpoint
extends CBreakpoint
implements ICLineBreakpoint

Base class for different types of location breakponts.


Field Summary
 
Fields inherited from interface org.eclipse.cdt.debug.core.model.ICLineBreakpoint
ADDRESS, FUNCTION
 
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
AbstractLineBreakpoint()
          Constructor for AbstractLineBreakpoint.
AbstractLineBreakpoint(org.eclipse.core.resources.IResource resource, java.lang.String markerType, java.util.Map attributes, boolean add)
          Constructor for AbstractLineBreakpoint.
 
Method Summary
 java.lang.String getAddress()
          Returns the address this breakpoint suspends execution at.
 int getCharEnd()
           
 int getCharStart()
           
 java.lang.String getFileName()
          Returns the source file (if available) of this breakpoint.
 java.lang.String getFunction()
          Returns the function this breakpoint suspends execution in.
 int getLineNumber()
           
 void setAddress(java.lang.String address)
          Sets the address this breakpoint suspends execution at.
 void setFunction(java.lang.String function)
          Sets the function this breakpoint suspends execution in.
 
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

AbstractLineBreakpoint

public AbstractLineBreakpoint()
Constructor for AbstractLineBreakpoint.


AbstractLineBreakpoint

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

Parameters:
resource -
markerType -
attributes -
add -
Throws:
org.eclipse.core.runtime.CoreException
Method Detail

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

getAddress

public java.lang.String getAddress()
                            throws org.eclipse.core.runtime.CoreException
Description copied from interface: ICLineBreakpoint
Returns the address this breakpoint suspends execution at.

Specified by:
getAddress in interface ICLineBreakpoint
Returns:
the address this breakpoint suspends execution at
Throws:
org.eclipse.core.runtime.CoreException - if unable to access the property on this breakpoint's underlying marker

getFileName

public java.lang.String getFileName()
                             throws org.eclipse.core.runtime.CoreException
Description copied from interface: ICLineBreakpoint
Returns the source file (if available) of this breakpoint.

Specified by:
getFileName in interface ICLineBreakpoint
Returns:
the source file of this breakpoint
Throws:
org.eclipse.core.runtime.CoreException - if unable to access the property on this breakpoint's underlying marker

getFunction

public java.lang.String getFunction()
                             throws org.eclipse.core.runtime.CoreException
Description copied from interface: ICLineBreakpoint
Returns the function this breakpoint suspends execution in.

Specified by:
getFunction in interface ICLineBreakpoint
Returns:
the function this breakpoint suspends execution in
Throws:
org.eclipse.core.runtime.CoreException - if unable to access the property on this breakpoint's underlying marker

setAddress

public void setAddress(java.lang.String address)
                throws org.eclipse.core.runtime.CoreException
Description copied from interface: ICLineBreakpoint
Sets the address this breakpoint suspends execution at.

Specified by:
setAddress in interface ICLineBreakpoint
Parameters:
address - the address this breakpoint suspends execution at
Throws:
org.eclipse.core.runtime.CoreException - if unable to access the property on this breakpoint's underlying marker

setFunction

public void setFunction(java.lang.String function)
                 throws org.eclipse.core.runtime.CoreException
Description copied from interface: ICLineBreakpoint
Sets the function this breakpoint suspends execution in.

Specified by:
setFunction in interface ICLineBreakpoint
Parameters:
function - the function this breakpoint suspends execution in
Throws:
org.eclipse.core.runtime.CoreException - if unable to access the property on this breakpoint's underlying marker