Uses of Class
net.hydromatic.morel.util.Pair
-
Packages that use Pair Package Description net.hydromatic.morel Standard ML interpreter, implemented in Java.net.hydromatic.morel.ast Abstract syntax tree.net.hydromatic.morel.compile Validates programs (represented asAstNode), deduces their type, and compiles them into code that can be evaluated.net.hydromatic.morel.eval Evaluates expressions.net.hydromatic.morel.type Type system.net.hydromatic.morel.util Utilities. -
-
Uses of Pair in net.hydromatic.morel
Methods in net.hydromatic.morel that return Pair Modifier and Type Method Description Pair<Shell.LineType,String>Shell.LineFn. read(StringBuilder buf)Pair<Shell.LineType,String>Shell.ReaderLineFn. read(StringBuilder buf)Pair<Shell.LineType,String>Shell.TerminalLineFn. read(StringBuilder buf) -
Uses of Pair in net.hydromatic.morel.ast
Fields in net.hydromatic.morel.ast with type parameters of type Pair Modifier and Type Field Description com.google.common.collect.ImmutableList<Pair<Ast.Id,Ast.Exp>>Ast.Group. groupExpsMethod parameters in net.hydromatic.morel.ast with type arguments of type Pair Modifier and Type Method Description Ast.GroupAst.Group. copy(List<Pair<Ast.Id,Ast.Exp>> groupExps, List<Ast.Aggregate> aggregates)Ast.GroupAstBuilder. group(Pos pos, List<Pair<Ast.Id,Ast.Exp>> groupExps, List<Ast.Aggregate> aggregates)Constructor parameters in net.hydromatic.morel.ast with type arguments of type Pair Constructor Description Group(Pos pos, Op op, com.google.common.collect.ImmutableList<Pair<Ast.Id,Ast.Exp>> groupExps, com.google.common.collect.ImmutableList<Ast.Aggregate> aggregates) -
Uses of Pair in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile with type parameters of type Pair Modifier and Type Field Description private com.google.common.collect.ImmutableList<Pair<Core.Pat,Code>>Compiler.MatchCode. patCodesprivate List<Pair<Unifier.Variable,PrimitiveType>>TypeResolver. preferredTypesprivate Map<Pair<Core.NamedPat,Type>,Core.NamedPat>Resolver. variantIdMapContains variable declarations whose type at the point they are used is different (more specific) than in their declaration.Methods in net.hydromatic.morel.compile that return Pair Modifier and Type Method Description private Pair<Core.Pat,Code>Compiler. compileMatch(Compiler.Context cx, Core.Match match)private Pair<TypeResolver.TypeEnv,Unifier.Variable>TypeResolver. deduceStepType(TypeResolver.TypeEnv env, Ast.FromStep step, Unifier.Variable v, TypeResolver.TypeEnv env2, Map<Ast.Id,Unifier.Variable> fieldVars, List<Ast.FromStep> fromSteps)Constructor parameters in net.hydromatic.morel.compile with type arguments of type Pair Constructor Description MatchCode(com.google.common.collect.ImmutableList<Pair<Core.Pat,Code>> patCodes, Pos pos)Resolver(TypeMap typeMap, NameGenerator nameGenerator, Map<Pair<Core.NamedPat,Type>,Core.NamedPat> variantIdMap, Environment env) -
Uses of Pair in net.hydromatic.morel.eval
Fields in net.hydromatic.morel.eval with type parameters of type Pair Modifier and Type Field Description (package private) List<Pair<Code,Boolean>>Codes.OrderRowSink. codesprivate com.google.common.collect.ImmutableList<Pair<Core.Pat,Code>>Closure. patCodesA list of (pattern, code) pairs.Method parameters in net.hydromatic.morel.eval with type arguments of type Pair Modifier and Type Method Description static Codes.RowSinkCodes. orderRowSink(com.google.common.collect.ImmutableList<Pair<Code,Boolean>> codes, com.google.common.collect.ImmutableList<Binding> bindings, Codes.RowSink rowSink)Creates aCodes.RowSinkfor aorderclause.Constructor parameters in net.hydromatic.morel.eval with type arguments of type Pair Constructor Description Closure(EvalEnv evalEnv, com.google.common.collect.ImmutableList<Pair<Core.Pat,Code>> patCodes, Pos pos)Not a public API.OrderRowSink(List<Pair<Code,Boolean>> codes, com.google.common.collect.ImmutableList<String> names, Codes.RowSink rowSink) -
Uses of Pair in net.hydromatic.morel.type
Fields in net.hydromatic.morel.type with type parameters of type Pair Modifier and Type Field Description private Map<String,Pair<DataType,Type>>TypeSystem. typeConstructorByNameMethods in net.hydromatic.morel.type that return Pair Modifier and Type Method Description Pair<DataType,Type>TypeSystem. lookupTyCon(String tyConName) -
Uses of Pair in net.hydromatic.morel.util
Methods in net.hydromatic.morel.util that return Pair Modifier and Type Method Description Pair<K,V>Pair.MutableZipList. get(int index)Pair<K,V>Pair.ZipList. get(int index)Pair<E,E>Pair.AdjacentIterator. next()Pair<E,E>Pair.FirstAndIterator. next()Pair<L,R>Pair.ZipIterator. next()static <K,V>
Pair<K,V>Pair. of(Map.Entry<K,V> entry)Creates aPairfrom aMap.Entry.static <T1,T2>
Pair<T1,T2>Pair. of(T1 left, T2 right)Creates a Pair of appropriate type.Pair<K,V>Pair.MutableZipList. remove(int index)Pair<K,V>Pair.MutableZipList. set(int index, Pair<K,V> pair)Methods in net.hydromatic.morel.util that return types with arguments of type Pair Modifier and Type Method Description static <T> Iterable<Pair<T,T>>Pair. adjacents(Iterable<T> iterable)Returns an iterator that iterates over (i, i + 1) pairs in an iterable.static <T> Iterable<Pair<T,T>>Pair. firstAnd(Iterable<T> iterable)Returns an iterator that iterates over (0, i) pairs in an iterable for i > 0.static <K,V>
Iterable<Pair<K,V>>Pair. zip(Iterable<? extends K> ks, Iterable<? extends V> vs)Converts two iterables into an iterable ofPairs.static <K,V>
List<Pair<K,V>>Pair. zip(List<K> ks, List<V> vs)Converts two lists into a list ofPairs, whose length is the lesser of the lengths of the source lists.static <K,V>
List<Pair<K,V>>Pair. zip(List<K> ks, List<V> vs, boolean strict)Converts two lists into a list ofPairs.static <K,V>
List<Pair<K,V>>Pair. zip(K[] ks, V[] vs)Converts two arrays into a list ofPairs.static <K,V>
List<Pair<K,V>>Pair. zipMutable(List<K> ks, List<V> vs)Returns a mutable list of pairs backed by a pair of mutable lists.Methods in net.hydromatic.morel.util with parameters of type Pair Modifier and Type Method Description voidPair.MutableZipList. add(int index, Pair<K,V> pair)intPair. compareTo(Pair<T1,T2> that)Pair<K,V>Pair.MutableZipList. set(int index, Pair<K,V> pair)Method parameters in net.hydromatic.morel.util with type arguments of type Pair Modifier and Type Method Description static <K,V>
Map<K,V>Pair. toMap(Iterable<Pair<K,V>> pairs)Converts a collection of Pairs into a Map.
-