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()
Frame
getLocation
in interface Frame
public Variable[] getArguments(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
Frame
getArguments
in interface Frame
NoResponseException
NotSuspendedException
NotConnectedException
public Variable[] getLocals(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
Frame
getLocals
in interface Frame
NoResponseException
NotSuspendedException
NotConnectedException
public Variable getThis(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
Frame
getThis
in interface Frame
NoResponseException
NotSuspendedException
NotConnectedException
public Variable[] getScopeChain(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
Frame
Some 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 Frame
NoResponseException
NotSuspendedException
NotConnectedException
public String getCallSignature()
Frame
declaringClass/[[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 Frame
public int getModule()
public int getLine()
public DVariable getThis()
public int getIsolateId()
Frame
getIsolateId
in interface Frame
Copyright © 2016 The Apache Software Foundation. All rights reserved.