Package net.hydromatic.morel.compile
Class SuchThatShuttle.PatMap
java.lang.Object
net.hydromatic.morel.compile.SuchThatShuttle.PatMap
- Enclosing class:
SuchThatShuttle
Maps patterns from their name in the "from" to their name after a sequence
of renames.
For example, in "case (x, y) of (a, b) => a + b", "x" is renamed to "a" and "y" is renamed to "b".
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap<Core.NamedPat, Core.NamedPat> -
Constructor Summary
ConstructorsConstructorDescriptionPatMap(com.google.common.collect.ImmutableMap<Core.NamedPat, Core.NamedPat> map) -
Method Summary
Modifier and TypeMethodDescription(package private) Core.NamedPat(package private) static SuchThatShuttle.PatMapprivate static voidpopulate(Core.Pat pat, Core.Exp exp, com.google.common.collect.ImmutableMap.Builder<Core.NamedPat, Core.NamedPat> nameBuilder)
-
Field Details
-
map
-
-
Constructor Details
-
PatMap
PatMap(com.google.common.collect.ImmutableMap<Core.NamedPat, Core.NamedPat> map)
-
-
Method Details
-
of
-
populate
private static void populate(Core.Pat pat, Core.Exp exp, com.google.common.collect.ImmutableMap.Builder<Core.NamedPat, Core.NamedPat> nameBuilder) -
apply
-