com.pvx.ooadide.launchers.debug.model
Class PVXStackFrame

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.debug.core.model.DebugElement
          extended by com.pvx.ooadide.launchers.debug.model.PVXDebugElement
              extended by com.pvx.ooadide.launchers.debug.model.PVXStackFrame
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IDebugElement, org.eclipse.debug.core.model.IStackFrame, org.eclipse.debug.core.model.IStep, org.eclipse.debug.core.model.ISuspendResume, org.eclipse.debug.core.model.ITerminate

public class PVXStackFrame
extends PVXDebugElement
implements org.eclipse.debug.core.model.IStackFrame

PDA stack frame.


Constructor Summary
PVXStackFrame(PVXThread thread, java.lang.String data, int id)
          Constructs a stack frame in the given thread with the given frame data.
 
Method Summary
 boolean canResume()
           
 boolean canStepInto()
           
 boolean canStepOver()
           
 boolean canStepReturn()
           
 boolean canSuspend()
           
 boolean canTerminate()
           
 boolean equals(java.lang.Object obj)
           
 int getCharEnd()
           
 int getCharStart()
           
 int getLineNumber()
           
 java.lang.String getName()
           
 org.eclipse.debug.core.model.IRegisterGroup[] getRegisterGroups()
           
 java.lang.String getSourceName()
          Returns the name of the source file this stack frame is associated with.
 org.eclipse.debug.core.model.IThread getThread()
           
 org.eclipse.debug.core.model.IVariable[] getVariables()
           
 int hashCode()
           
 boolean hasRegisterGroups()
           
 boolean hasVariables()
           
 boolean isStepping()
           
 boolean isSuspended()
           
 boolean isTerminated()
           
 void resume()
           
 void stepInto()
           
 void stepOver()
           
 void stepReturn()
           
 void suspend()
           
 void terminate()
           
 
Methods inherited from class com.pvx.ooadide.launchers.debug.model.PVXDebugElement
getModelIdentifier, sendRequest
 
Methods inherited from class org.eclipse.debug.core.model.DebugElement
fireChangeEvent, fireCreationEvent, fireEvent, fireResumeEvent, fireSuspendEvent, fireTerminateEvent, getAdapter, getDebugTarget, getLaunch
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement
getDebugTarget, getLaunch, getModelIdentifier
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

PVXStackFrame

public PVXStackFrame(PVXThread thread,
                     java.lang.String data,
                     int id)
Constructs a stack frame in the given thread with the given frame data.

Parameters:
thread -
data - frame data
id - stack frame id (0 is the bottom of the stack)
Method Detail

getThread

public org.eclipse.debug.core.model.IThread getThread()
Specified by:
getThread in interface org.eclipse.debug.core.model.IStackFrame

getVariables

public org.eclipse.debug.core.model.IVariable[] getVariables()
                                                      throws org.eclipse.debug.core.DebugException
Specified by:
getVariables in interface org.eclipse.debug.core.model.IStackFrame
Throws:
org.eclipse.debug.core.DebugException

hasVariables

public boolean hasVariables()
                     throws org.eclipse.debug.core.DebugException
Specified by:
hasVariables in interface org.eclipse.debug.core.model.IStackFrame
Throws:
org.eclipse.debug.core.DebugException

getLineNumber

public int getLineNumber()
                  throws org.eclipse.debug.core.DebugException
Specified by:
getLineNumber in interface org.eclipse.debug.core.model.IStackFrame
Throws:
org.eclipse.debug.core.DebugException

getCharStart

public int getCharStart()
                 throws org.eclipse.debug.core.DebugException
Specified by:
getCharStart in interface org.eclipse.debug.core.model.IStackFrame
Throws:
org.eclipse.debug.core.DebugException

getCharEnd

public int getCharEnd()
               throws org.eclipse.debug.core.DebugException
Specified by:
getCharEnd in interface org.eclipse.debug.core.model.IStackFrame
Throws:
org.eclipse.debug.core.DebugException

getName

public java.lang.String getName()
                         throws org.eclipse.debug.core.DebugException
Specified by:
getName in interface org.eclipse.debug.core.model.IStackFrame
Throws:
org.eclipse.debug.core.DebugException

getRegisterGroups

public org.eclipse.debug.core.model.IRegisterGroup[] getRegisterGroups()
                                                                throws org.eclipse.debug.core.DebugException
Specified by:
getRegisterGroups in interface org.eclipse.debug.core.model.IStackFrame
Throws:
org.eclipse.debug.core.DebugException

hasRegisterGroups

public boolean hasRegisterGroups()
                          throws org.eclipse.debug.core.DebugException
Specified by:
hasRegisterGroups in interface org.eclipse.debug.core.model.IStackFrame
Throws:
org.eclipse.debug.core.DebugException

canStepInto

public boolean canStepInto()
Specified by:
canStepInto in interface org.eclipse.debug.core.model.IStep

canStepOver

public boolean canStepOver()
Specified by:
canStepOver in interface org.eclipse.debug.core.model.IStep

canStepReturn

public boolean canStepReturn()
Specified by:
canStepReturn in interface org.eclipse.debug.core.model.IStep

isStepping

public boolean isStepping()
Specified by:
isStepping in interface org.eclipse.debug.core.model.IStep

stepInto

public void stepInto()
              throws org.eclipse.debug.core.DebugException
Specified by:
stepInto in interface org.eclipse.debug.core.model.IStep
Throws:
org.eclipse.debug.core.DebugException

stepOver

public void stepOver()
              throws org.eclipse.debug.core.DebugException
Specified by:
stepOver in interface org.eclipse.debug.core.model.IStep
Throws:
org.eclipse.debug.core.DebugException

stepReturn

public void stepReturn()
                throws org.eclipse.debug.core.DebugException
Specified by:
stepReturn in interface org.eclipse.debug.core.model.IStep
Throws:
org.eclipse.debug.core.DebugException

canResume

public boolean canResume()
Specified by:
canResume in interface org.eclipse.debug.core.model.ISuspendResume

canSuspend

public boolean canSuspend()
Specified by:
canSuspend in interface org.eclipse.debug.core.model.ISuspendResume

isSuspended

public boolean isSuspended()
Specified by:
isSuspended in interface org.eclipse.debug.core.model.ISuspendResume

resume

public void resume()
            throws org.eclipse.debug.core.DebugException
Specified by:
resume in interface org.eclipse.debug.core.model.ISuspendResume
Throws:
org.eclipse.debug.core.DebugException

suspend

public void suspend()
             throws org.eclipse.debug.core.DebugException
Specified by:
suspend in interface org.eclipse.debug.core.model.ISuspendResume
Throws:
org.eclipse.debug.core.DebugException

canTerminate

public boolean canTerminate()
Specified by:
canTerminate in interface org.eclipse.debug.core.model.ITerminate

isTerminated

public boolean isTerminated()
Specified by:
isTerminated in interface org.eclipse.debug.core.model.ITerminate

terminate

public void terminate()
               throws org.eclipse.debug.core.DebugException
Specified by:
terminate in interface org.eclipse.debug.core.model.ITerminate
Throws:
org.eclipse.debug.core.DebugException

getSourceName

public java.lang.String getSourceName()
Returns the name of the source file this stack frame is associated with.

Returns:
the name of the source file this stack frame is associated with

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object