com.aptana.ide.debug.internal.core.model
Class JSDebugStackFrame

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.debug.core.model.DebugElement
          extended by com.aptana.ide.debug.internal.core.model.JSDebugElement
              extended by com.aptana.ide.debug.internal.core.model.JSDebugStackFrame
All Implemented Interfaces:
IJSStackFrame, 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 JSDebugStackFrame
extends JSDebugElement
implements IJSStackFrame

Author:
Max Stepanov

Field Summary
protected  int pc
          pc
protected  int scriptTag
          scriptTag
 
Constructor Summary
JSDebugStackFrame(org.eclipse.debug.core.model.IDebugTarget target, org.eclipse.debug.core.model.IThread thread, int frameId, java.lang.String function, java.lang.String sourceFile, int sourceLine, int pc, int scriptTag)
          JSDebugStackFrame
 
Method Summary
 boolean canResume()
           
 boolean canStepInto()
           
 boolean canStepOver()
           
 boolean canStepReturn()
           
 boolean canSuspend()
           
 boolean canTerminate()
           
 org.eclipse.debug.core.model.IVariable findVariable(java.lang.String variableName)
          findVariable
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 int getCharEnd()
           
 int getCharStart()
           
protected  int getFrameId()
          getFrameId
 int getLineNumber()
           
 java.lang.String getName()
           
 org.eclipse.debug.core.model.IRegisterGroup[] getRegisterGroups()
           
 java.lang.String getSourceFileName()
          getSourceFileName
 org.eclipse.debug.core.model.IThread getThread()
           
 org.eclipse.debug.core.model.IVariable[] getVariables()
           
 boolean hasRegisterGroups()
           
 boolean hasVariables()
           
protected  void invalidate()
          invalidate
protected  void invalidate(int frameId, int sourceLine, int pc)
          invalidate
protected  boolean isSameAs(JSDebugStackFrame other)
          isSameAs
 boolean isStepping()
           
 boolean isSuspended()
           
 boolean isTerminated()
           
 void resume()
           
 void stepInto()
           
 void stepOver()
           
 void stepReturn()
           
 void suspend()
           
 void terminate()
           
 
Methods inherited from class com.aptana.ide.debug.internal.core.model.JSDebugElement
getModelIdentifier, throwDebugException, throwDebugException, throwDebugException, throwNotImplemented
 
Methods inherited from class org.eclipse.debug.core.model.DebugElement
fireChangeEvent, fireCreationEvent, fireEvent, fireResumeEvent, fireSuspendEvent, 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
 

Field Detail

pc

protected int pc
pc


scriptTag

protected int scriptTag
scriptTag

Constructor Detail

JSDebugStackFrame

public JSDebugStackFrame(org.eclipse.debug.core.model.IDebugTarget target,
                         org.eclipse.debug.core.model.IThread thread,
                         int frameId,
                         java.lang.String function,
                         java.lang.String sourceFile,
                         int sourceLine,
                         int pc,
                         int scriptTag)
JSDebugStackFrame

Parameters:
target -
thread -
frameId -
function -
sourceFile -
sourceLine -
pc -
scriptTag -
Method Detail

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
Overrides:
getAdapter in class org.eclipse.debug.core.model.DebugElement
See Also:
IAdaptable.getAdapter(java.lang.Class)

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
See Also:
IStackFrame.getVariables()

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
See Also:
IStackFrame.hasVariables()

getThread

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

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
See Also:
IStackFrame.getLineNumber()

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
See Also:
IStackFrame.getCharStart()

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
See Also:
IStackFrame.getCharEnd()

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
See Also:
IStackFrame.getName()

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
See Also:
IStackFrame.getRegisterGroups()

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
See Also:
IStackFrame.hasRegisterGroups()

canStepInto

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

canStepOver

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

canStepReturn

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

isStepping

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

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
See Also:
IStep.stepInto()

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
See Also:
IStep.stepOver()

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
See Also:
IStep.stepReturn()

canResume

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

canSuspend

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

isSuspended

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

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
See Also:
ISuspendResume.resume()

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
See Also:
ISuspendResume.suspend()

canTerminate

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

isTerminated

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

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
See Also:
ITerminate.terminate()

getSourceFileName

public java.lang.String getSourceFileName()
Description copied from interface: IJSStackFrame
getSourceFileName

Specified by:
getSourceFileName in interface IJSStackFrame
Returns:
String
See Also:
IJSStackFrame.getSourceFileName()

getFrameId

protected int getFrameId()
getFrameId

Returns:
int

findVariable

public org.eclipse.debug.core.model.IVariable findVariable(java.lang.String variableName)
                                                    throws org.eclipse.debug.core.DebugException
Description copied from interface: IJSStackFrame
findVariable

Specified by:
findVariable in interface IJSStackFrame
Returns:
IVariable
Throws:
org.eclipse.debug.core.DebugException
See Also:
IJSStackFrame.findVariable(java.lang.String)

isSameAs

protected boolean isSameAs(JSDebugStackFrame other)
isSameAs

Parameters:
other -
Returns:
boolean

invalidate

protected void invalidate()
invalidate


invalidate

protected void invalidate(int frameId,
                          int sourceLine,
                          int pc)
invalidate

Parameters:
frameId -
sourceLine -
pc -