|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elang.scope.PatternMap | +--org.erights.e.elang.scope.PatternMapBase
A single-contour PatternMap.
Field Summary | |
private FlexMap |
myPatterns
|
Fields inherited from class org.erights.e.elang.scope.PatternMap |
EMPTY |
Constructor Summary | |
(package private) |
PatternMapBase(FlexMap patterns)
|
Method Summary | |
(package private) void |
addNamesTo(FlexSet names)
|
void |
assertShadowable(String name)
Enabled: Throw an exception if 'name' may not be shadowed because it is already defined in the current (i.e. |
boolean |
contains(String name)
Enabled: Is 'name' in scope? |
NounPattern |
getPattern(String name)
Enabled: Get the NounPattern that was used to bind a given variable. |
ConstSet |
namesSet()
Enabled: Return the set of names bound in this PatternMap. |
void |
replace(String name,
NounPattern pattern)
Enabled: |
Methods inherited from class org.erights.e.elang.scope.PatternMap |
make, nested, with |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final FlexMap myPatterns
Constructor Detail |
PatternMapBase(FlexMap patterns)
Method Detail |
public NounPattern getPattern(String name)
PatternMap
getPattern
in class PatternMap
public boolean contains(String name)
PatternMap
contains
in class PatternMap
public ConstSet namesSet()
PatternMap
namesSet
in class PatternMap
void addNamesTo(FlexSet names)
addNamesTo
in class PatternMap
public void replace(String name, NounPattern pattern)
PatternMap
replace
in class PatternMap
public void assertShadowable(String name)
PatternMap
assertShadowable
in class PatternMap
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |