Package net.hydromatic.morel.eval
Class EvalEnvs.ArraySubEvalEnv
- java.lang.Object
-
- net.hydromatic.morel.eval.EvalEnvs.ArraySubEvalEnv
-
- All Implemented Interfaces:
EvalEnv
- Direct Known Subclasses:
EvalEnvs.MutableArraySubEvalEnv,EvalEnvs.PatSubEvalEnv
- Enclosing class:
- EvalEnvs
static class EvalEnvs.ArraySubEvalEnv extends Object implements EvalEnv
Similar toMutableEvalEnvbut binds several names.
-
-
Constructor Summary
Constructors Constructor Description ArraySubEvalEnv(EvalEnv parentEnv, com.google.common.collect.ImmutableList<String> names, Object[] values)
-
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
-
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.
-
-