| Modifier and Type | Method and Description |
|---|---|
Scope.Builder |
arguments(Object arguments)
Set arguments of the scope.
|
Scope |
build()
Uses configuration of this builder to create new
Scope object. |
Scope.Builder |
node(Node node)
Set node representing the scope.
|
Scope.Builder |
receiver(String name,
Object receiver)
Set a receiver 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 object