Package net.hydromatic.morel.compile
Class TypeResolver.BindTypeEnv
java.lang.Object
net.hydromatic.morel.compile.TypeResolver.BindTypeEnv
- All Implemented Interfaces:
TypeResolver.TypeEnv
- Enclosing class:
TypeResolver
A type environment that consists of a type environment plus one
binding.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final TypeResolver.TypeEnvprivate final Function<TypeSystem, Unifier.Term> -
Constructor Summary
ConstructorsConstructorDescriptionBindTypeEnv(String definedName, Function<TypeSystem, Unifier.Term> termFactory, TypeResolver.TypeEnv parent) -
Method Summary
Modifier and TypeMethodDescriptionbind(String name, Function<TypeSystem, Unifier.Term> termFactory) get(TypeSystem typeSystem, String name, Function<String, RuntimeException> exceptionFactory) booleantoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.hydromatic.morel.compile.TypeResolver.TypeEnv
bind
-
Field Details
-
definedName
-
termFactory
-
parent
-
-
Constructor Details
-
BindTypeEnv
BindTypeEnv(String definedName, Function<TypeSystem, Unifier.Term> termFactory, TypeResolver.TypeEnv parent)
-
-
Method Details
-
get
public Unifier.Term get(TypeSystem typeSystem, String name, Function<String, RuntimeException> exceptionFactory) - Specified by:
getin interfaceTypeResolver.TypeEnv
-
has
- Specified by:
hasin interfaceTypeResolver.TypeEnv
-
bind
- Specified by:
bindin interfaceTypeResolver.TypeEnv
-
toString
-