| Constructor and Description |
|---|
DStackContext(int module,
int line,
DModule f,
long thisId,
String functionSignature,
int depth,
int isolateId) |
| Modifier and Type | Method and Description |
|---|---|
Variable[] |
getArguments(Session s)
Arguments that were passed into the function.
|
String |
getCallSignature()
Returns a string which contains the raw signature of
the call.
|
int |
getIsolateId()
Returns the worker ID associated to this frame.
|
int |
getLine() |
Variable[] |
getLocals(Session s)
Locals used within this function scope.
|
Location |
getLocation()
Location object related to this frame.
|
int |
getModule() |
Variable[] |
getScopeChain(Session s)
Returns a list of objects which make up the scope chain of
this frame.
|
DVariable |
getThis() |
Variable |
getThis(Session s)
'this' variable for the frame.
|
public Location getLocation()
FramegetLocation in interface Framepublic Variable[] getArguments(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
FramegetArguments in interface FrameNoResponseExceptionNotSuspendedExceptionNotConnectedExceptionpublic Variable[] getLocals(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
FramegetLocals in interface FrameNoResponseExceptionNotSuspendedExceptionNotConnectedExceptionpublic Variable getThis(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
FramegetThis in interface FrameNoResponseExceptionNotSuspendedExceptionNotConnectedExceptionpublic Variable[] getScopeChain(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
FrameSome of the entries will be classes; some will be instances of classes; some will be functions; etc.
Bug: Currently, this does not include any scope chain entries which were created via "with var".
getScopeChain in interface FrameNoResponseExceptionNotSuspendedExceptionNotConnectedExceptionpublic String getCallSignature()
FramedeclaringClass/[[namespace::]function] (for regular functions) declaringClass$cinit (class constructor for statics) declaringClass$iinit (class instance ctor)global$init
where declaringClass is the name of the
class in which the function is declared (even if it
is an anonymous inner function); namespace
is the namespace of the function (the meaning of this
varies depending on whether the function is private,
protected etc.; see Variable.getNamespace()
for more information); and function is
the name of the function, or "" if the
function is anonymous.
If the signature is unknown then the value "" will be returned. Note: this may occur even when Location contains a non-null SourceFile.
Examples:
MyClass/myFunction for a public function MyClass/MyClass::myFunction for a private function MyClass/ for an anonymous inner function declared
somewhere inside MyClass "" if unknown getCallSignature in interface Framepublic int getModule()
public int getLine()
public DVariable getThis()
public int getIsolateId()
FramegetIsolateId in interface FrameCopyright © 2016 The Apache Software Foundation. All rights reserved.