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

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.VMThread
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IDebugElement, org.eclipse.debug.core.model.IStep, org.eclipse.debug.core.model.ISuspendResume, org.eclipse.debug.core.model.ITerminate, org.eclipse.debug.core.model.IThread, VMEventListener

public class VMThread
extends VMDebugElement
implements org.eclipse.debug.core.model.IThread, VMEventListener


Constructor Summary
VMThread(IVMDebugTarget target)
           
 
Method Summary
 boolean canResume()
           
 boolean canStepInto()
           
 boolean canStepOver()
           
 boolean canStepReturn()
           
 boolean canSuspend()
           
 boolean canTerminate()
           
 org.eclipse.debug.core.model.IBreakpoint[] getBreakpoints()
           
 VMDebugCore getDebugCore()
           
 java.lang.String getName()
           
 int getPriority()
           
 org.eclipse.debug.core.model.IStackFrame[] getStackFrames()
           
 org.eclipse.debug.core.model.IStackFrame getTopStackFrame()
           
 void handleEvent(VMEvent event)
           
 boolean hasStackFrames()
           
 boolean isDeferredExecution()
           
 boolean isStepping()
           
 boolean isSuspended()
           
 boolean isTerminated()
           
 void resume()
           
 void stepInto()
           
 void stepOver()
           
 void stepReturn()
           
 void suspend()
           
 void terminate()
           
 
Methods inherited from class org.eclipse.ocl.examples.debug.vm.core.VMDebugElement
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

VMThread

public VMThread(IVMDebugTarget target)
Method Detail

isDeferredExecution

public boolean isDeferredExecution()

hasStackFrames

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

getStackFrames

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

getDebugCore

@NonNull
public VMDebugCore getDebugCore()
Overrides:
getDebugCore in class VMDebugElement

getPriority

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

getTopStackFrame

public org.eclipse.debug.core.model.IStackFrame getTopStackFrame()
                                                          throws org.eclipse.debug.core.DebugException
Specified by:
getTopStackFrame in interface org.eclipse.debug.core.model.IThread
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.IThread
Throws:
org.eclipse.debug.core.DebugException

getBreakpoints

public org.eclipse.debug.core.model.IBreakpoint[] getBreakpoints()
Specified by:
getBreakpoints in interface org.eclipse.debug.core.model.IThread

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

canStepInto

public boolean canStepInto()
Specified by:
canStepInto 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

canStepOver

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

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

canStepReturn

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

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

isStepping

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

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

handleEvent

public void handleEvent(VMEvent event)
Specified by:
handleEvent in interface VMEventListener