org.eclipse.ocl.examples.debug.vm.core
Class VMStackFrame

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.debug.core.model.DebugElement
          extended by org.eclipse.ocl.examples.debug.vm.core.VMDebugElement
              extended by org.eclipse.ocl.examples.debug.vm.core.VMStackFrame
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 VMStackFrame
extends VMDebugElement
implements org.eclipse.debug.core.model.IStackFrame


Constructor Summary
VMStackFrame(VMThread thread, VMStackFrameData frame)
           
 
Method Summary
 boolean canResume()
           
 boolean canStepInto()
           
 boolean canStepOver()
           
 boolean canStepReturn()
           
 boolean canSuspend()
           
 boolean canTerminate()
           
 org.eclipse.debug.core.model.IValue evaluate(java.lang.String expressionText)
           
 int getCharEnd()
           
 int getCharStart()
           
 int getLineNumber()
           
 VMLocationData getLocation()
           
 java.lang.String getName()
           
 org.eclipse.debug.core.model.IRegisterGroup[] getRegisterGroups()
           
 org.eclipse.debug.core.model.IThread getThread()
           
 org.eclipse.emf.common.util.URI getUnitURI()
           
 org.eclipse.debug.core.model.IVariable[] getVariables()
           
 boolean hasRegisterGroups()
           
 boolean hasVariables()
           
 boolean isDeferredExecution()
           
 boolean isStepping()
           
 boolean isSuspended()
           
 boolean isTerminated()
           
 void resume()
           
 void setDeferredExecution(boolean isDeferred)
           
protected  void setLocation(VMStackFrameData frame)
           
 void stepInto()
           
 void stepOver()
           
 void stepReturn()
           
 void suspend()
           
 void terminate()
           
 
Methods inherited from class org.eclipse.ocl.examples.debug.vm.core.VMDebugElement
getDebugCore, getModelIdentifier, getOCLDebugTarget
 
Methods inherited from class org.eclipse.debug.core.model.DebugElement
fireChangeEvent, fireCreationEvent, fireEvent, fireResumeEvent, fireSuspendEvent, fireTerminateEvent, getAdapter, getDebugTarget, getLaunch, notSupported, requestFailed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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

VMStackFrame

public VMStackFrame(@NonNull
                    VMThread thread,
                    @NonNull
                    VMStackFrameData frame)
Method Detail

canResume

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

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

canSuspend

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

canTerminate

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

evaluate

public org.eclipse.debug.core.model.IValue evaluate(@NonNull
                                                    java.lang.String expressionText)
                                             throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

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

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

getLineNumber

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

getLocation

public VMLocationData getLocation()

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

getThread

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

getUnitURI

@NonNull
public org.eclipse.emf.common.util.URI getUnitURI()

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

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

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

isDeferredExecution

public boolean isDeferredExecution()

isStepping

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

isSuspended

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

isTerminated

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

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

setDeferredExecution

public void setDeferredExecution(boolean isDeferred)

setLocation

protected void setLocation(@NonNull
                           VMStackFrameData frame)

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

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

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