Uses of Class
net.hydromatic.morel.util.Unifier.Variable
-
Packages that use Unifier.Variable Package Description net.hydromatic.morel.compile Validates programs (represented asAstNode), deduces their type, and compiles them into code that can be evaluated.net.hydromatic.morel.util Utilities. -
-
Uses of Unifier.Variable in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as Unifier.Variable Modifier and Type Field Description (package private) Unifier.VariableTypeResolver.PlusSubst. variable(package private) Unifier.VariableTypeResolver.TermVariable. variableFields in net.hydromatic.morel.compile with type parameters of type Unifier.Variable Modifier and Type Field Description (package private) java.util.Map<Unifier.Variable,Unifier.Action>TypeResolver. actionMapMethods in net.hydromatic.morel.compile that return Unifier.Variable Modifier and Type Method Description (package private) Unifier.VariableTypeResolver.EmptySubst. get(TypeVar typeVar)(package private) Unifier.VariableTypeResolver.PlusSubst. get(TypeVar typeVar)(package private) abstract Unifier.VariableTypeResolver.Subst. get(TypeVar typeVar)Methods in net.hydromatic.morel.compile with parameters of type Unifier.Variable Modifier and Type Method Description private Ast.ExpTypeResolver. comparison(TypeResolver.TypeEnv env, Ast.InfixCall call, Unifier.Variable v)Registers an infix operator whose type is a given type and whose arguments are the same type.private Ast.ExpTypeResolver. deduceConsType(TypeResolver.TypeEnv env, Ast.InfixCall call, Unifier.Variable v)private voidTypeResolver. deduceMatchListType(TypeResolver.TypeEnv env, java.util.List<Ast.Match> matchList, java.util.NavigableSet<java.lang.String> labelNames, Unifier.Variable argVariable, Unifier.Variable resultVariable)private AstNodeTypeResolver. deduceMatchType(TypeResolver.TypeEnv env, Ast.Match match, java.util.Map<Ast.IdPat,Unifier.Term> termMap, Unifier.Variable argVariable, Unifier.Variable resultVariable)private Ast.PatTypeResolver. deducePatType(TypeResolver.TypeEnv env, Ast.Pat pat, java.util.Map<Ast.IdPat,Unifier.Term> termMap, java.util.NavigableSet<java.lang.String> labelNames, Unifier.Variable v)Derives a type term for a pattern, collecting the names of pattern variables.private Ast.RecordSelectorTypeResolver. deduceRecordSelectorType(TypeResolver.TypeEnv env, Unifier.Variable vResult, Unifier.Variable vArg, Ast.RecordSelector recordSelector)private Ast.ExpTypeResolver. deduceType(TypeResolver.TypeEnv env, Ast.Exp node, Unifier.Variable v)private AstNodeTypeResolver. deduceValBindType(TypeResolver.TypeEnv env, Ast.ValBind valBind, java.util.Map<Ast.IdPat,Unifier.Term> termMap, Unifier.Variable v)private voidTypeResolver. equiv(Unifier.Term term, Unifier.Variable atom)private Ast.ExpTypeResolver. infix(TypeResolver.TypeEnv env, Ast.InfixCall call, Unifier.Variable v, Type type)Registers an infix operator whose type is a given type.private Ast.ExpTypeResolver. infixOverloaded(TypeResolver.TypeEnv env, Ast.InfixCall call, Unifier.Variable v, Type defaultType)Registers an infix or prefix operator whose type is the same as its arguments.private Ast.ExpTypeResolver. opOverloaded(TypeResolver.TypeEnv env, Ast.Exp call, Unifier.Variable v, Type defaultType)Registers an infix or prefix operator whose type is the same as its arguments.(package private) TypeResolver.SubstTypeResolver.Subst. plus(TypeVar typeVar, Unifier.Variable variable)private Ast.ExpTypeResolver. prefixOverloaded(TypeResolver.TypeEnv env, Ast.PrefixCall call, Unifier.Variable v, Type defaultType)Registers an infix or prefix operator whose type is the same as its arguments.private <E extends AstNode>
ETypeResolver. reg(E node, Unifier.Variable variable, Unifier.Term term)TypeTypeResolver.TermToTypeConverter. visit(Unifier.Variable variable)Constructors in net.hydromatic.morel.compile with parameters of type Unifier.Variable Constructor Description PlusSubst(TypeResolver.Subst parent, TypeVar typeVar, Unifier.Variable variable)TermVariable(Unifier.Term term, Unifier.Variable variable) -
Uses of Unifier.Variable in net.hydromatic.morel.util
Fields in net.hydromatic.morel.util with type parameters of type Unifier.Variable Modifier and Type Field Description java.util.Map<Unifier.Variable,Unifier.Term>Unifier.Substitution. resultMapThe result of the unification algorithm proper.private java.util.Map<java.lang.String,Unifier.Variable>Unifier. variableMapMethods in net.hydromatic.morel.util that return Unifier.Variable Modifier and Type Method Description Unifier.VariableUnifier. variable()Creates a new variable, with a new name.Unifier.VariableUnifier. variable(java.lang.String name)Creates a variable, or returns an existing one with the same name.Methods in net.hydromatic.morel.util that return types with arguments of type Unifier.Variable Modifier and Type Method Description (package private) static java.util.Map<Unifier.Variable,Unifier.Term>RobinsonUnifier. compose(java.util.Map<Unifier.Variable,Unifier.Term> s1, java.util.Map<Unifier.Variable,Unifier.Term> s2)Applies s1 to the elements of s2 and adds them into a single list.Methods in net.hydromatic.morel.util with parameters of type Unifier.Variable Modifier and Type Method Description voidUnifier.Action. accept(Unifier.Variable variable, Unifier.Term term, java.util.List<Unifier.TermTerm> termPairs)private voidMartelliUnifier. act(Unifier.Variable variable, Unifier.Term term, java.util.List<Unifier.TermTerm> termPairs, java.util.Map<Unifier.Variable,Unifier.Action> termActions, int depth)intUnifier.Variable. compareTo(Unifier.Variable o)booleanUnifier.Sequence. contains(Unifier.Variable variable)booleanUnifier.Term. contains(Unifier.Variable variable)booleanUnifier.Variable. contains(Unifier.Variable variable)RUnifier.TermVisitor. visit(Unifier.Variable variable)Method parameters in net.hydromatic.morel.util with type arguments of type Unifier.Variable Modifier and Type Method Description private voidMartelliUnifier. act(Unifier.Variable variable, Unifier.Term term, java.util.List<Unifier.TermTerm> termPairs, java.util.Map<Unifier.Variable,Unifier.Action> termActions, int depth)Unifier.TermUnifier.Sequence. apply(java.util.Map<Unifier.Variable,Unifier.Term> substitutions)Unifier.TermUnifier.Term. apply(java.util.Map<Unifier.Variable,Unifier.Term> substitutions)Unifier.TermUnifier.Variable. apply(java.util.Map<Unifier.Variable,Unifier.Term> substitutions)voidUnifier.Sequence. checkCycle(java.util.Map<Unifier.Variable,Unifier.Term> map, java.util.Map<Unifier.Variable,Unifier.Variable> active)voidUnifier.Term. checkCycle(java.util.Map<Unifier.Variable,Unifier.Term> map, java.util.Map<Unifier.Variable,Unifier.Variable> active)Throws CycleException if expanding this term leads to a cycle.voidUnifier.Variable. checkCycle(java.util.Map<Unifier.Variable,Unifier.Term> map, java.util.Map<Unifier.Variable,Unifier.Variable> active)private static voidUnifier. checkCycles(java.util.Map<Unifier.Variable,Unifier.Term> map, java.util.Map<Unifier.Variable,Unifier.Variable> active)(package private) static java.util.Map<Unifier.Variable,Unifier.Term>RobinsonUnifier. compose(java.util.Map<Unifier.Variable,Unifier.Term> s1, java.util.Map<Unifier.Variable,Unifier.Term> s2)Applies s1 to the elements of s2 and adds them into a single list.private booleanUnifier.Substitution. hasCycles(java.util.Map<Unifier.Variable,Unifier.Term> map)(package private) static Unifier.SequenceUnifier. sequenceApply(java.lang.String operator, java.util.Map<Unifier.Variable,Unifier.Term> substitutions, java.lang.Iterable<Unifier.Term> terms)Unifier.ResultMartelliUnifier. unify(java.util.List<Unifier.TermTerm> termPairs, java.util.Map<Unifier.Variable,Unifier.Action> termActions)Unifier.ResultRobinsonUnifier. unify(java.util.List<Unifier.TermTerm> termPairs, java.util.Map<Unifier.Variable,Unifier.Action> termActions)abstract Unifier.ResultUnifier. unify(java.util.List<Unifier.TermTerm> termPairs, java.util.Map<Unifier.Variable,Unifier.Action> termActions)Constructor parameters in net.hydromatic.morel.util with type arguments of type Unifier.Variable Constructor Description Substitution(java.util.Map<Unifier.Variable,Unifier.Term> resultMap)
-