Scope.CompoundScope, Scope.DelegatedScope, Scope.Entry, Scope.ErrorScope, Scope.ImportScope, Scope.ScopeListener, Scope.StarImportScope
Modifier and Type | Field and Description |
---|---|
static Scope.Entry[] |
emptyTable |
elems, emptyScope, next, owner
Constructor and Description |
---|
DelegatedScope(Scope outer) |
Modifier and Type | Method and Description |
---|---|
Scope |
dup()
Construct a fresh scope within this scope, with same owner,
which shares its table with the outer scope.
|
Scope |
dupUnshared()
Construct a fresh scope within this scope, with same owner,
with a new hash table, whose contents initially are those of
the table of its outer scope.
|
void |
enter(Symbol sym)
Enter symbol sym in this scope.
|
void |
enter(Symbol sym,
Scope s) |
Scope |
leave()
Remove all entries of this scope from its table, if shared
with next.
|
Scope.Entry |
lookup(Name name)
Return the entry associated with given name, starting in
this scope and proceeding outwards.
|
void |
remove(Symbol sym)
Remove symbol from this scope.
|
addScopeListener, anyMatch, dup, enter, enterIfAbsent, getElements, getElements, getElementsByName, getElementsByName, includes, lookup, toString
public static final Scope.Entry[] emptyTable
public DelegatedScope(Scope outer)
public Scope dup()
Scope
public Scope dupUnshared()
Scope
dupUnshared
in class Scope
public Scope leave()
Scope
public void enter(Symbol sym)
Scope
public void remove(Symbol sym)
Scope
public Scope.Entry lookup(Name name)
Scope
Copyright © 2017 earcam. All rights reserved.