Package net.hydromatic.morel.compile
Class Environments.EmptyEnvironment
- java.lang.Object
-
- net.hydromatic.morel.compile.Environment
-
- net.hydromatic.morel.compile.Environments.EmptyEnvironment
-
- Enclosing class:
- Environments
private static class Environments.EmptyEnvironment extends Environment
Empty environment.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static Environments.EmptyEnvironmentINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateEmptyEnvironment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BindinggetOpt(java.lang.String name)Returns the binding ofnameif bound, null if not.(package private) voidvisit(java.util.function.Consumer<Binding> consumer)Visits every variable binding in this environment.-
Methods inherited from class net.hydromatic.morel.compile.Environment
bind, bindAll, forEachType, forEachValue, get, getValueMap, toString
-
-
-
-
Field Detail
-
INSTANCE
static final Environments.EmptyEnvironment INSTANCE
-
-
Method Detail
-
visit
void visit(java.util.function.Consumer<Binding> consumer)
Description copied from class:EnvironmentVisits 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.
- Specified by:
visitin classEnvironment
-
getOpt
public Binding getOpt(java.lang.String name)
Description copied from class:EnvironmentReturns the binding ofnameif bound, null if not.- Specified by:
getOptin classEnvironment
-
-