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, terminategetEvaluateContextgetSuspendedStategetConnectedDatagetDebugTargetgetLaunch, getModelIdentifierpublic 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
DebugExceptionpublic boolean hasVariables()
throws DebugException
DebugExceptionpublic boolean canDropToFrame()
public void dropToFrame()
throws DebugException
DebugExceptionpublic int getLineNumber()
throws DebugException
DebugExceptionpublic int getCharStart()
throws DebugException
DebugExceptionpublic int getCharEnd()
throws DebugException
DebugExceptionpublic java.lang.String getName()
throws DebugException
DebugExceptionpublic VmResourceId getVmResourceId()
public IJavaScriptValue evaluate(java.lang.String expression)
IJavaScriptStackFrameValue
of the evaluation.null and will return a value with NullValue instead.evaluate in interface IJavaScriptStackFrameexpression - the expression to evaluate, null is accepted and will cause a value
backed by NullValue to be returnedIJavaScriptValue from the evaluation never nullpublic java.lang.String getSourceName()
IJavaScriptStackFramenullgetSourceName in interface IJavaScriptStackFramenullpublic java.lang.String getSourcePath()
IJavaScriptStackFramenullgetSourcePath in interface IJavaScriptStackFramenullpublic java.lang.String getSource()
IJavaScriptStackFramenull if the source cannot be acquiredgetSource in interface IJavaScriptStackFramenullpublic IVariable getThisObject()
IJavaScriptStackFrameIVariable for the this object.nullgetThisObject in interface IJavaScriptStackFramethis IVariablepublic java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in class StackFrameBaseCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.