org.eclipse.cdt.debug.internal.core.model
Class DisassemblyBlock

java.lang.Object
  extended by org.eclipse.cdt.debug.internal.core.model.DisassemblyBlock
All Implemented Interfaces:
IDisassemblyBlock, org.eclipse.core.runtime.IAdaptable

public class DisassemblyBlock
extends java.lang.Object
implements IDisassemblyBlock, org.eclipse.core.runtime.IAdaptable

CDI-based implementation of IDisassemblyBlock.


Method Summary
 boolean contains(ICStackFrame frame)
          Returns whether this block contains given stack frame.
static DisassemblyBlock create(IDisassembly disassembly, org.eclipse.cdt.debug.core.cdi.model.ICDIInstruction[] instructions)
           
static DisassemblyBlock create(IDisassembly disassembly, org.eclipse.cdt.debug.core.cdi.model.ICDIMixedInstruction[] instructions)
           
 void dispose()
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 IDisassembly getDisassembly()
          Returns the parent disassembly object.
 java.lang.String getModuleFile()
          Returns the platform-dependent path of the executable associated with this segment.
 java.lang.Object getSourceElement()
          Returns the source element (IFile or File>) of the source file associated with this segment or null if no source file is associated.
 IAsmSourceLine[] getSourceLines()
          Return the array of source lines associated with this block.
 boolean isMixedMode()
          Returns whether this block contains mixed source/disassembly information.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static DisassemblyBlock create(IDisassembly disassembly,
                                      org.eclipse.cdt.debug.core.cdi.model.ICDIMixedInstruction[] instructions)

create

public static DisassemblyBlock create(IDisassembly disassembly,
                                      org.eclipse.cdt.debug.core.cdi.model.ICDIInstruction[] instructions)

getDisassembly

public IDisassembly getDisassembly()
Description copied from interface: IDisassemblyBlock
Returns the parent disassembly object.

Specified by:
getDisassembly in interface IDisassemblyBlock
Returns:
the parent disassembly object

getModuleFile

public java.lang.String getModuleFile()
Description copied from interface: IDisassemblyBlock
Returns the platform-dependent path of the executable associated with this segment.

Specified by:
getModuleFile in interface IDisassemblyBlock
Returns:
the platform-dependent path of the executable

getSourceElement

public java.lang.Object getSourceElement()
Description copied from interface: IDisassemblyBlock
Returns the source element (IFile or File>) of the source file associated with this segment or null if no source file is associated.

Specified by:
getSourceElement in interface IDisassemblyBlock
Returns:
the source element

contains

public boolean contains(ICStackFrame frame)
Description copied from interface: IDisassemblyBlock
Returns whether this block contains given stack frame.

Specified by:
contains in interface IDisassemblyBlock
Parameters:
frame - the stack frame
Returns:
whether this block contains given stack frame

getSourceLines

public IAsmSourceLine[] getSourceLines()
Description copied from interface: IDisassemblyBlock
Return the array of source lines associated with this block.

Specified by:
getSourceLines in interface IDisassemblyBlock
Returns:
the array of source lines associated with this block

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable

isMixedMode

public boolean isMixedMode()
Description copied from interface: IDisassemblyBlock
Returns whether this block contains mixed source/disassembly information.

Specified by:
isMixedMode in interface IDisassemblyBlock
Returns:
whether this block contains mixed source/disassembly information

dispose

public void dispose()