public class Scope
extends java.lang.Object
| Constructor and Description |
|---|
Scope(Bindings globalBindings)
Create a new
Scope, with the given initial set of "global" bindings. |
| Modifier and Type | Method and Description |
|---|---|
void |
extendCurrent(Bindings bindings)
Extend the current bindings with the given one.
|
void |
pop()
Pop the most recent bindings off the stack.
|
void |
push(Bindings bindings)
Push the given bindings onto the stack.
|
java.lang.Object |
resolve(java.lang.String name)
Resolve the given named variable from the stack of bindings, most recently-pushed to last.
|
public void push(Bindings bindings)
bindings - The bindings to push.public void pop()
public void extendCurrent(Bindings bindings)
bindings - The new Bindings.@Nullable
public java.lang.Object resolve(@Nonnull
java.lang.String name)
name - The name to resolve.