|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.code.Scope
com.sun.tools.javac.code.Scope.DelegatedScope
public static class Scope.DelegatedScope
An empty scope, into which you can't place anything. Used for the scope for a variable initializer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.tools.javac.code.Scope |
|---|
Scope.DelegatedScope, Scope.Entry, Scope.ErrorScope, Scope.ImportScope |
| Field Summary | |
|---|---|
(package private) Scope |
delegatee
|
static Scope.Entry[] |
emptyTable
|
| Fields inherited from class com.sun.tools.javac.code.Scope |
|---|
elems, emptyScope, hashMask, level, nelems, next, owner, table |
| Constructor Summary | |
|---|---|
Scope.DelegatedScope(Scope outer)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.sun.tools.javac.code.Scope |
|---|
dup, enter, enterIfAbsent, getElements, getLevel, includes, makeEntry, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
Scope delegatee
public static final Scope.Entry[] emptyTable
| Constructor Detail |
|---|
public Scope.DelegatedScope(Scope outer)
| Method Detail |
|---|
public Scope dup()
Scope
dup in class Scopepublic Scope dupUnshared()
Scope
dupUnshared in class Scopepublic Scope leave()
Scope
leave in class Scopepublic void enter(Symbol sym)
Scope
enter in class Scope
public void enter(Symbol sym,
Scope s)
enter in class Scopepublic void remove(Symbol sym)
Scope
remove in class Scopepublic Scope.Entry lookup(Name name)
Scope
lookup in class Scope
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||