org.drools.eclipse.debug.core
Class DroolsThread

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.debug.core.model.DebugElement
          extended by org.eclipse.jdt.internal.debug.core.model.JDIDebugElement
              extended by org.eclipse.jdt.internal.debug.core.model.JDIThread
                  extended by org.drools.eclipse.debug.core.DroolsThread
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IDebugElement, org.eclipse.debug.core.model.IDisconnect, org.eclipse.debug.core.model.IFilteredStep, org.eclipse.debug.core.model.IStep, org.eclipse.debug.core.model.ISuspendResume, org.eclipse.debug.core.model.ITerminate, org.eclipse.debug.core.model.IThread, org.eclipse.jdt.debug.core.IJavaThread

public class DroolsThread
extends org.eclipse.jdt.internal.debug.core.model.JDIThread

Drools Thread supporting MVEL and Java dialect stackframes


Field Summary
 
Fields inherited from class org.eclipse.jdt.internal.debug.core.model.JDIThread
RESUME_QUIET, SUSPEND_QUIET, SUSPEND_TIMEOUT
 
Fields inherited from interface org.eclipse.jdt.debug.core.IJavaThread
ERR_INCOMPATIBLE_THREAD_STATE, ERR_NESTED_METHOD_INVOCATION, ERR_THREAD_NOT_SUSPENDED
 
Constructor Summary
DroolsThread(org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget target, com.sun.jdi.ThreadReference thread)
           
 
Method Summary
protected  List computeStackFrames(boolean refreshChildren)
           
static DroolsStackFrame createCustomFrame(DroolsThread thread, int depth, com.sun.jdi.StackFrame currentFrame)
           
protected  void disposeStackFrames()
           
 List getInternalfStackFrames()
           
protected  void removeCurrentBreakpoint(org.eclipse.debug.core.model.IBreakpoint bp)
           
 void resume()
           
protected  void resumedByVM()
           
 void setInternalfRefreshChildren(boolean bool)
           
protected  void setRunning(boolean running)
           
 void stepOver()
           
protected  void suspendedByVM()
           
protected  void terminated()
           
 
Methods inherited from class org.eclipse.jdt.internal.debug.core.model.JDIThread
abortStep, addCurrentBreakpoint, canResume, canRunEvaluation, canStep, canStepInto, canStepOver, canStepReturn, canStepWithFilters, canSuspend, canTerminate, canTerminateEvaluation, completeBreakpointHandling, computeNewStackFrames, computeStackFrames, determineIfDaemonThread, determineIfSystemThread, dropToFrame, findVariable, forceReturn, getAdapter, getBreakpoints, getContendedMonitor, getFrameCount, getName, getOriginalStepKind, getOriginalStepLocation, getOriginalStepStackDepth, getOwnedMonitors, getPendingStepHandler, getPriority, getStackFrames, getThreadGroup, getThreadGroupName, getThreadObject, getThreadRule, getTopStackFrame, getUnderlyingFrameCount, getUnderlyingThread, getUnderlyingThreadGroup, handleSuspendForBreakpoint, hasClientRequestedSuspend, hasOwnedMonitors, hasStackFrames, initialize, invokeComplete, invokeFailed, invokeFailed, invokeMethod, isDaemon, isIgnoringBreakpoints, isInvokingMethod, isOutOfSynch, isPerformingEvaluation, isStepping, isSuspended, isSuspendVoteInProgress, isSystemThread, isTerminated, isUnderlyingThreadSuspended, mayBeOutOfSynch, newInstance, popFrame, prepareForClientSuspend, preserveStackFrames, queueRunnable, resumedFromClassPrepare, runEvaluation, setInvokingMethod, setOriginalStepKind, setOriginalStepLocation, setOriginalStepStackDepth, setPendingStepHandler, setTerminated, setUnderlyingThread, shouldDoExtraStepInto, shouldDoStepReturn, stepInto, stepReturn, stepToFrame, stepWithFilters, stop, suspend, suspendUnderlyingThread, terminate, terminateEvaluation
 
Methods inherited from class org.eclipse.jdt.internal.debug.core.model.JDIDebugElement
addJDIEventListener, canDisconnect, disconnect, disconnected, fireSuspendEvent, getEventRequestManager, getJavaDebugTarget, getModelIdentifier, getRequestTimeout, getUnknownMessage, getVM, internalError, internalError, isDisconnected, isStepFiltersEnabled, jdiRequestFailed, logError, notSupported, queueEvent, queueSuspendEvent, removeJDIEventListener, requestFailed, requestFailed, setRequestTimeout, supportsRequestTimeout, targetRequestFailed, targetRequestFailed, throwDebugException
 
Methods inherited from class org.eclipse.debug.core.model.DebugElement
fireChangeEvent, fireCreationEvent, fireEvent, fireResumeEvent, fireTerminateEvent, 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
 

Constructor Detail

DroolsThread

public DroolsThread(org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget target,
                    com.sun.jdi.ThreadReference thread)
             throws com.sun.jdi.ObjectCollectedException
Throws:
com.sun.jdi.ObjectCollectedException
Method Detail

computeStackFrames

protected List computeStackFrames(boolean refreshChildren)
                           throws org.eclipse.debug.core.DebugException
Overrides:
computeStackFrames in class org.eclipse.jdt.internal.debug.core.model.JDIThread
Throws:
org.eclipse.debug.core.DebugException

createCustomFrame

public static final DroolsStackFrame createCustomFrame(DroolsThread thread,
                                                       int depth,
                                                       com.sun.jdi.StackFrame currentFrame)

stepOver

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

resume

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

disposeStackFrames

protected void disposeStackFrames()
Overrides:
disposeStackFrames in class org.eclipse.jdt.internal.debug.core.model.JDIThread

terminated

protected void terminated()
Overrides:
terminated in class org.eclipse.jdt.internal.debug.core.model.JDIThread

removeCurrentBreakpoint

protected void removeCurrentBreakpoint(org.eclipse.debug.core.model.IBreakpoint bp)
Overrides:
removeCurrentBreakpoint in class org.eclipse.jdt.internal.debug.core.model.JDIThread

suspendedByVM

protected void suspendedByVM()
Overrides:
suspendedByVM in class org.eclipse.jdt.internal.debug.core.model.JDIThread

resumedByVM

protected void resumedByVM()
                    throws org.eclipse.debug.core.DebugException
Overrides:
resumedByVM in class org.eclipse.jdt.internal.debug.core.model.JDIThread
Throws:
org.eclipse.debug.core.DebugException

setRunning

protected void setRunning(boolean running)
Overrides:
setRunning in class org.eclipse.jdt.internal.debug.core.model.JDIThread

setInternalfRefreshChildren

public void setInternalfRefreshChildren(boolean bool)

getInternalfStackFrames

public List getInternalfStackFrames()


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.