|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.erights.e.elang.scope.ScopeMap
|
+--org.erights.e.elang.scope.ScopeMapContour
A ScopeMap consisting of an empty innermost contour on top of some other ScopeMap.
| Field Summary | |
private ScopeMap |
myNext
|
| Fields inherited from class org.erights.e.elang.scope.ScopeMap |
EMPTY |
| Constructor Summary | |
(package private) |
ScopeMapContour(ScopeMap outer)
|
| Method Summary | |
(package private) void |
addNamesTo(FlexSet names)
Adds all the names mapped by this ScopeMap to 'names' |
void |
assertShadowable(String varName)
Enabled: Throw an exception is the varName may not be shadowed because it is already defined in the current (i.e. |
boolean |
contains(String name)
Enabled: Is 'varName' in scope? |
NounExpr |
getNoun(String name)
Enabled: Gets the NounExpr which will retrieve the Slot/value of the variable named 'varName' from a corresponding EvalContext. |
ConstSet |
namesSet()
Enabled: Return the set of all names mapped by this ScopeMap. |
ScopeMap |
nested()
Enabled: Makes a new ScopeMap just like this one, but with a new empty innermost contour added. |
| Methods inherited from class org.erights.e.elang.scope.ScopeMap |
make, with |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final ScopeMap myNext
| Constructor Detail |
ScopeMapContour(ScopeMap outer)
| Method Detail |
public NounExpr getNoun(String name)
ScopeMap
getNoun in class ScopeMappublic boolean contains(String name)
ScopeMap
contains in class ScopeMappublic ConstSet namesSet()
ScopeMap
namesSet in class ScopeMapvoid addNamesTo(FlexSet names)
ScopeMap
addNamesTo in class ScopeMappublic void assertShadowable(String varName)
ScopeMap
If varName may not be shadowed because it is reserved, this is caught
in org.erights.e.elang.evm.NounPattern rather than here.
assertShadowable in class ScopeMappublic ScopeMap nested()
ScopeMap
nested in class ScopeMap
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||