NodeLibrary and
InteropLibrary.isScope(Object) instead.@Deprecated public final class Scope.Builder extends Object
Scope object.| Modifier and Type | Method and Description |
|---|---|
Scope.Builder |
arguments(Object arguments)
Deprecated.
Set arguments of the scope.
|
Scope |
build()
Deprecated.
Uses configuration of this builder to create new
Scope object. |
Scope.Builder |
node(Node node)
Deprecated.
Set node representing the scope.
|
Scope.Builder |
receiver(String name,
Object receiver)
Deprecated.
Set a receiver object of this scope.
|
Scope.Builder |
rootInstance(Object rootInstance)
Deprecated.
Set the root instance object of this scope.
|
public Scope.Builder node(Node node)
node - the scope's nodepublic Scope.Builder arguments(Object arguments)
The properties representing the arguments needs to have deterministic iteration order, argument declaration order is recommended.
arguments - arguments of the scopepublic Scope.Builder receiver(String name, Object receiver)
this in Java or JavaScript and self in Ruby, for instance.
The scope that represents the function provide receiver object, if there is one, other scopes do not provide it, unless they override it.
name - code name of the receiver objectreceiver - the receiver objectpublic Scope.Builder rootInstance(Object rootInstance)
rootInstance - the root instance object, or null when no such instance
exists.