Package net.hydromatic.morel.eval
Class EvalEnvs.MapEvalEnv
- java.lang.Object
-
- net.hydromatic.morel.eval.EvalEnvs.MapEvalEnv
-
-
Constructor Summary
Constructors Constructor Description MapEvalEnv(Map<String,Object> valueMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetOpt(String name)Returns the binding ofnameif bound, null if not.voidvisit(BiConsumer<String,Object> consumer)Visits every variable binding in this environment.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.hydromatic.morel.eval.EvalEnv
bind, bindMutable, bindMutableArray, bindMutablePat, fix, valueMap
-
-
-
-
Method Detail
-
getOpt
public Object getOpt(String name)
Description copied from interface:EvalEnvReturns the binding ofnameif bound, null if not.
-
visit
public void visit(BiConsumer<String,Object> consumer)
Description copied from interface:EvalEnvVisits every variable binding in this environment.Bindings that are obscured by more recent bindings of the same name are visited, but after the more obscuring bindings.
-
-