public class StackFrame extends StackFrameBase implements IJavaScriptStackFrame
DebugElementImpl.WithConnected, DebugElementImpl.WithConnectedBase, DebugElementImpl.WithEvaluate, DebugElementImpl.WithEvaluateBase, DebugElementImpl.WithSuspended, DebugElementImpl.WithSuspendedBase
Constructor and Description |
---|
StackFrame(JavascriptThread.SuspendedState threadState,
CallFrame stackFrame)
Constructs a stack frame for the given handler using the FrameMirror data
from the remote V8 VM.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDropToFrame() |
void |
dropToFrame() |
IJavaScriptValue |
evaluate(java.lang.String expression)
Allows the given expression to be evaluated and returns the
Value
of the evaluation. |
java.lang.Object |
getAdapter(java.lang.Class adapter) |
CallFrame |
getCallFrame() |
int |
getCharEnd() |
int |
getCharStart() |
int |
getLineNumber() |
java.lang.String |
getName() |
java.lang.String |
getSource()
Returns the underlying source for the frame.
|
java.lang.String |
getSourceName()
Returns the name of the source backing the stack frame.
|
java.lang.String |
getSourcePath()
Returns the path to the source.
|
IVariable |
getThisObject()
Returns the
IVariable for the this object. |
IVariable[] |
getVariables() |
VmResourceId |
getVmResourceId() |
boolean |
hasVariables() |
canResume, canStepInto, canStepOver, canStepReturn, canSuspend, canTerminate, equals, getRegisterGroups, getThread, hashCode, hasRegisterGroups, isStepping, isSuspended, isTerminated, resume, stepInto, stepOver, stepReturn, suspend, terminate
getEvaluateContext
getSuspendedState
getConnectedData
getDebugTarget
getLaunch, getModelIdentifier
public StackFrame(JavascriptThread.SuspendedState threadState, CallFrame stackFrame)
debugTarget
- the global parentthread
- for which the stack frame is createdstackFrame
- an underlying SDK stack framepublic CallFrame getCallFrame()
public IVariable[] getVariables() throws DebugException
DebugException
public boolean hasVariables() throws DebugException
DebugException
public boolean canDropToFrame()
public void dropToFrame() throws DebugException
DebugException
public int getLineNumber() throws DebugException
DebugException
public int getCharStart() throws DebugException
DebugException
public int getCharEnd() throws DebugException
DebugException
public java.lang.String getName() throws DebugException
DebugException
public VmResourceId getVmResourceId()
public IJavaScriptValue evaluate(java.lang.String expression)
IJavaScriptStackFrame
Value
of the evaluation.null
and will return a value with NullValue
instead.evaluate
in interface IJavaScriptStackFrame
expression
- the expression to evaluate, null
is accepted and will cause a value
backed by NullValue
to be returnedIJavaScriptValue
from the evaluation never null
public java.lang.String getSourceName()
IJavaScriptStackFrame
null
getSourceName
in interface IJavaScriptStackFrame
null
public java.lang.String getSourcePath()
IJavaScriptStackFrame
null
getSourcePath
in interface IJavaScriptStackFrame
null
public java.lang.String getSource()
IJavaScriptStackFrame
null
if the source cannot be acquiredgetSource
in interface IJavaScriptStackFrame
null
public IVariable getThisObject()
IJavaScriptStackFrame
IVariable
for the this
object.null
getThisObject
in interface IJavaScriptStackFrame
this
IVariable
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in class StackFrameBase
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.