|
|||||||||||
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.ScopeMapLink
A ScopeMap having at least one name => NounExpr association in the innermost contour.
Built from a single association and a previous ScopeMap.
Field Summary | |
private String |
myName
|
private ScopeMap |
myNextMap
|
private NounExpr |
myNoun
|
Fields inherited from class org.erights.e.elang.scope.ScopeMap |
EMPTY |
Constructor Summary | |
(package private) |
ScopeMapLink(String name,
NounExpr noun,
ScopeMap nextMap)
|
Method Summary | |
(package private) void |
addNamesTo(FlexSet names)
Adds all the names mapped by this ScopeMap to 'names' |
void |
assertShadowable(String name)
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. |
Methods inherited from class org.erights.e.elang.scope.ScopeMap |
make, namesSet, nested, with |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final ScopeMap myNextMap
private final String myName
private final NounExpr myNoun
Constructor Detail |
ScopeMapLink(String name, NounExpr noun, ScopeMap nextMap)
Method Detail |
public NounExpr getNoun(String name)
ScopeMap
getNoun
in class ScopeMap
public boolean contains(String name)
ScopeMap
contains
in class ScopeMap
void addNamesTo(FlexSet names)
ScopeMap
addNamesTo
in class ScopeMap
public void assertShadowable(String name)
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 ScopeMap
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |