|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.erights.e.elang.scope.Scope
|
+--org.erights.e.elang.scope.InnerScope
Untamed: A Scope that represents a nested lexical scope.
Made after the fact from a ScopeMap (static info) and an EvalContext (runtime info).
| Field Summary | |
private EvalContext |
myEvalContext
|
| Fields inherited from class org.erights.e.elang.scope.Scope |
myScopeMap |
| Constructor Summary | |
InnerScope(ScopeMap scopeMap,
EvalContext ctx)
Enabled: |
|
| Method Summary | |
void |
bindOuter(String name,
Slot slot)
Enabled: |
Scope |
diverge(String fqnPrefix)
Enabled: |
String |
getOptFQNPrefix()
Enabled: Returns null, since we're not at top level |
Slot |
getSlot(String name)
Enabled: |
EvalContext |
newContext(int numLocals)
Enabled: |
NounExpr |
reserveOuterNoun(String name)
Enabled: |
String |
toString()
Suppressed: |
| Methods inherited from class org.erights.e.elang.scope.Scope |
asMap, bindFinal, bindings, bindings, cleanup, get, get, getScopeMap, in, iterate, maps, put |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private final EvalContext myEvalContext
| Constructor Detail |
public InnerScope(ScopeMap scopeMap,
EvalContext ctx)
| Method Detail |
public String getOptFQNPrefix()
getOptFQNPrefix in class Scopepublic NounExpr reserveOuterNoun(String name)
reserveOuterNoun in class Scopepublic Slot getSlot(String name)
getSlot in class Scope
public void bindOuter(String name,
Slot slot)
throws AlreadyDefinedException
bindOuter in class ScopeAlreadyDefinedExceptionpublic EvalContext newContext(int numLocals)
newContext in class Scopepublic Scope diverge(String fqnPrefix)
diverge in class Scopepublic String toString()
toString in class Object
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||