Uses of Class
net.hydromatic.morel.ast.Core.NamedPat
Packages that use Core.NamedPat
Package
Description
Abstract syntax tree.
Validates programs
(represented as
AstNode),
deduces their type,
and compiles them into code that can be evaluated.Evaluates expressions.
Type system.
-
Uses of Core.NamedPat in net.hydromatic.morel.ast
Subclasses of Core.NamedPat in net.hydromatic.morel.astModifier and TypeClassDescriptionstatic classLayered pattern.static classNamed pattern.Fields in net.hydromatic.morel.ast declared as Core.NamedPatModifier and TypeFieldDescriptionfinal Core.NamedPatCore.Id.idPatfinal Core.NamedPatCore.NonRecValDecl.patFields in net.hydromatic.morel.ast with type parameters of type Core.NamedPatModifier and TypeFieldDescriptionstatic final com.google.common.collect.Ordering<Core.NamedPat> Core.NamedPat.ORDERINGOrdering that compares named patterns by their names, then by their ordinal.Methods in net.hydromatic.morel.ast that return Core.NamedPatMethods in net.hydromatic.morel.ast with parameters of type Core.NamedPatModifier and TypeMethodDescriptionvoidCore.BindingConsumer.accept(Core.NamedPat namedPat, Core.Exp exp, Pos pos) (package private) static intCore.NamedPat.compare(Core.NamedPat o1, Core.NamedPat o2) Helper forORDERING.intCore.NamedPat.compareTo(Core.NamedPat o) Core.NonRecValDecl.copy(Core.NamedPat pat, Core.Exp exp) CoreBuilder.id(Core.NamedPat idPat) Creates a reference to a value.CoreBuilder.nonRecValDecl(Pos pos, Core.NamedPat pat, Core.Exp exp) Constructors in net.hydromatic.morel.ast with parameters of type Core.NamedPatModifierConstructorDescription(package private)Id(Core.NamedPat idPat) Creates an Id.(package private)NonRecValDecl(Core.NamedPat pat, Core.Exp exp, Pos pos) -
Uses of Core.NamedPat in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as Core.NamedPatModifier and TypeFieldDescription(package private) final Core.NamedPatResolver.ResolvedValDecl.patFields in net.hydromatic.morel.compile with type parameters of type Core.NamedPatModifier and TypeFieldDescription(package private) final SortedMap<Core.NamedPat, Core.Exp> Extents.Analysis.boundPats(package private) final SortedMap<Core.NamedPat, Core.Exp> Extents.Extent.boundPats(package private) final Set<Core.NamedPat> Extents.Analysis.goalPats(package private) final Set<Core.NamedPat> Extents.Extent.goalPatsfinal com.google.common.collect.ImmutableMap<Core.NamedPat, Analyzer.Use> Analyzer.Analysis.mapprivate final Map<Core.NamedPat, Analyzer.MutableUse> Analyzer.mapprivate final Map<Core.NamedPat, Binding> Environments.MapEnvironment.mapprivate final com.google.common.collect.ImmutableMap<Core.NamedPat, Core.NamedPat> SuchThatShuttle.PatMap.mapprivate final com.google.common.collect.ImmutableMap<Core.NamedPat, Core.NamedPat> SuchThatShuttle.PatMap.map(package private) final Set<Core.NamedPat> Resolver.ReferenceFinder.setprivate final 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.private final 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 Core.NamedPatModifier and TypeMethodDescription(package private) Core.NamedPatSuchThatShuttle.PatMap.apply(Core.NamedPat p) private Core.NamedPatConverts an Id that is a reference to a variable into an IdPat that represents its declaration.private static @Nullable Core.NamedPatCompiles.getSkipPat(Ast.Decl decl, Core.Decl coreDecl) Returns a pattern that should not be printed, or null.Methods in net.hydromatic.morel.compile that return types with arguments of type Core.NamedPatModifier and TypeMethodDescription(package private) Set<Core.NamedPat> Extents.Analysis.unboundPats()Methods in net.hydromatic.morel.compile with parameters of type Core.NamedPatModifier and TypeMethodDescription(package private) Core.NamedPatSuchThatShuttle.PatMap.apply(Core.NamedPat p) (package private) static voidCompiles.bindPattern(TypeSystem typeSystem, List<Binding> bindings, Core.NamedPat namedPat) (package private) voidCompiler.compileDecl(Compiler.Context cx, Core.Decl decl, @Nullable Core.NamedPat skipPat, Set<Core.Exp> queriesToWrap, List<Code> matchCodes, List<Binding> bindings, List<Compiler.Action> actions) private CodeCompiler.compileFieldName(Compiler.Context cx, Core.NamedPat idPat) (package private) CompiledStatementCompiler.compileStatement(Environment env, Core.Decl decl, @Nullable Core.NamedPat skipPat, Set<Core.Exp> queriesToWrap) (package private) abstract intEnvironment.distance(int soFar, Core.NamedPat id) (package private) intEnvironments.EmptyEnvironment.distance(int soFar, Core.NamedPat id) (package private) intEnvironments.MapEnvironment.distance(int soFar, Core.NamedPat id) (package private) intEnvironments.SubEnvironment.distance(int soFar, Core.NamedPat id) abstract @Nullable BindingEnvironment.getOpt(Core.NamedPat id) Returns the binding ofidif bound, null if not.@Nullable BindingEnvironments.EmptyEnvironment.getOpt(Core.NamedPat id) @Nullable BindingEnvironments.MapEnvironment.getOpt(Core.NamedPat id) @Nullable BindingEnvironments.SubEnvironment.getOpt(Core.NamedPat id) private Analyzer.MutableUseAnalyzer.use(Core.NamedPat name) Gets or creates aAnalyzer.MutableUsefor a given name.Method parameters in net.hydromatic.morel.compile with type arguments of type Core.NamedPatModifier and TypeMethodDescriptionstatic Extents.AnalysisExtents.create(TypeSystem typeSystem, Core.Pat pat, SortedMap<Core.NamedPat, Core.Exp> boundPats, Core.Exp exp) private voidCompiler.link(Map<Core.NamedPat, Compiler.LinkCode> linkCodes, Core.Pat pat, Code code) (package private) abstract EnvironmentEnvironment.nearestAncestorNotObscuredBy(Set<Core.NamedPat> names) If this environment only defines bindings in the given set, returns its parent.(package private) EnvironmentEnvironments.EmptyEnvironment.nearestAncestorNotObscuredBy(Set<Core.NamedPat> names) (package private) EnvironmentEnvironments.MapEnvironment.nearestAncestorNotObscuredBy(Set<Core.NamedPat> names) (package private) EnvironmentEnvironments.SubEnvironment.nearestAncestorNotObscuredBy(Set<Core.NamedPat> names) private static voidSuchThatShuttle.PatMap.populate(Core.Pat pat, Core.Exp exp, com.google.common.collect.ImmutableMap.Builder<Core.NamedPat, Core.NamedPat> nameBuilder) private static voidSuchThatShuttle.PatMap.populate(Core.Pat pat, Core.Exp exp, com.google.common.collect.ImmutableMap.Builder<Core.NamedPat, Core.NamedPat> nameBuilder) private Core.ExpSuchThatShuttle.rewrite(UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, List<Core.Exp> exps) Rewrites a "from vars suchthat condition" expression to a "from vars in list" expression; returns null if no rewrite is possible.private Core.ExpSuchThatShuttle.rewrite(UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, List<Core.Exp> exps) Rewrites a "from vars suchthat condition" expression to a "from vars in list" expression; returns null if no rewrite is possible.private Core.Expprivate @Nullable Core.ExpSuchThatShuttle.rewriteElem(TypeSystem typeSystem, UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, Core.Exp a0, Core.Exp a1, List<Core.Exp> exps2) private @Nullable Core.ExpSuchThatShuttle.rewriteElem(TypeSystem typeSystem, UnaryOperator<Core.NamedPat> mapper, SortedMap<Core.NamedPat, Core.Exp> boundPats, Map<Core.IdPat, Core.Exp> scans, List<Core.Exp> filters, Core.Exp a0, Core.Exp a1, List<Core.Exp> exps2) private voidCompiler.shredValue(Core.Pat pat, Object o, BiConsumer<Core.NamedPat, Object> consumer) Constructors in net.hydromatic.morel.compile with parameters of type Core.NamedPatModifierConstructorDescription(package private)ResolvedValDecl(boolean rec, com.google.common.collect.ImmutableList<Resolver.PatExp> patExps, Core.NamedPat pat, Core.Exp exp) Constructor parameters in net.hydromatic.morel.compile with type arguments of type Core.NamedPatModifierConstructorDescription(package private)Analysis(com.google.common.collect.ImmutableMap<Core.NamedPat, Analyzer.Use> map) (package private)Analysis(SortedMap<Core.NamedPat, Core.Exp> boundPats, Set<Core.NamedPat> goalPats, Core.Exp extentExp, List<Core.Exp> remainingFilters) (package private)Analysis(SortedMap<Core.NamedPat, Core.Exp> boundPats, Set<Core.NamedPat> goalPats, Core.Exp extentExp, List<Core.Exp> remainingFilters) privateAnalyzer(TypeSystem typeSystem, Environment env, Map<Core.NamedPat, Analyzer.MutableUse> map, Deque<EnvVisitor.FromContext> fromStack) Private constructor.(package private)Extent(TypeSystem typeSystem, Core.Pat pat, SortedMap<Core.NamedPat, Core.Exp> boundPats) (package private)MapEnvironment(Environment parent, com.google.common.collect.ImmutableMap<Core.NamedPat, Binding> map) (package private)PatMap(com.google.common.collect.ImmutableMap<Core.NamedPat, Core.NamedPat> map) (package private)PatMap(com.google.common.collect.ImmutableMap<Core.NamedPat, Core.NamedPat> map) protectedReferenceFinder(TypeSystem typeSystem, Environment env, Set<Core.NamedPat> set, Deque<EnvVisitor.FromContext> fromStack) privateResolver(TypeMap typeMap, NameGenerator nameGenerator, Map<Pair<Core.NamedPat, Type>, Core.NamedPat> variantIdMap, Environment env, @Nullable Session session) privateResolver(TypeMap typeMap, NameGenerator nameGenerator, Map<Pair<Core.NamedPat, Type>, Core.NamedPat> variantIdMap, Environment env, @Nullable Session session) -
Uses of Core.NamedPat in net.hydromatic.morel.eval
Methods in net.hydromatic.morel.eval with parameters of type Core.NamedPatModifier and TypeMethodDescriptionvoidClosure.EvalEnvHolder.accept(Core.NamedPat namedPat, Object o) Method parameters in net.hydromatic.morel.eval with type arguments of type Core.NamedPatModifier and TypeMethodDescriptionstatic booleanClosure.bindRecurse(Core.Pat pat, Object argValue, BiConsumer<Core.NamedPat, Object> envRef) Attempts to bind a value to a pattern. -
Uses of Core.NamedPat in net.hydromatic.morel.type
Fields in net.hydromatic.morel.type declared as Core.NamedPatMethods in net.hydromatic.morel.type with parameters of type Core.NamedPatModifier and TypeMethodDescriptionstatic BindingBinding.of(Core.NamedPat id) static BindingBinding.of(Core.NamedPat id, Object value) static BindingBinding.of(Core.NamedPat id, Core.Exp exp) Constructors in net.hydromatic.morel.type with parameters of type Core.NamedPatModifierConstructorDescriptionprivateBinding(Core.NamedPat id, Core.Exp exp, Object value, boolean parameter)