public interface Frame
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.
|
Variable[] |
getLocals(Session s)
Locals used within this function scope.
|
Location |
getLocation()
Location object related to this frame.
|
Variable[] |
getScopeChain(Session s)
Returns a list of objects which make up the scope chain of
this frame.
|
Variable |
getThis(Session s)
'this' variable for the frame.
|
Location getLocation()
Variable getThis(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
Variable[] getArguments(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
Variable[] getLocals(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
String getCallSignature()
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 Variable[] getScopeChain(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
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".
int getIsolateId()
Copyright © 2016 The Apache Software Foundation. All rights reserved.