Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
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.
|
Object |
getSyncObject() |
static Object |
getSyncObject(Frame f) |
Variable |
getThis(Session s)
'this' variable for the frame.
|
int |
hashCode() |
String |
toString() |
static ThreadSafeFrame |
wrap(Object syncObj,
Frame frame)
Wraps a Frame inside a ThreadSafeFrame.
|
static ThreadSafeFrame[] |
wrapArray(Object syncObj,
Frame[] frames)
Wraps an array of Frames inside an array of ThreadSafeFrames.
|
public static ThreadSafeFrame wrap(Object syncObj, Frame frame)
public static ThreadSafeFrame[] wrapArray(Object syncObj, Frame[] frames)
public Variable[] getArguments(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
Frame
getArguments
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 Variable[] getLocals(Session s) throws NoResponseException, NotSuspendedException, NotConnectedException
Frame
getLocals
in interface Frame
NoResponseException
NotSuspendedException
NotConnectedException
public Location getLocation()
Frame
getLocation
in interface Frame
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 int getIsolateId()
Frame
getIsolateId
in interface Frame
public final Object getSyncObject()
Copyright © 2016 The Apache Software Foundation. All rights reserved.