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.NamedPatModifier and TypeMethodDescriptionabstract Core.NamedPatprivate Core.NamedPatCoreBuilder.getIdPat(TypeSystem typeSystem, Core.Exp exp, @Nullable String name) abstract Core.NamedPatReturns a copy of this pattern with a given name and ordinal 0; or this pattern if the name is the same.abstract Core.NamedPatReturns a copy of this pattern with a given type; or this pattern if the type is the same.Methods in net.hydromatic.morel.ast with parameters of type Core.NamedPatModifier and TypeMethodDescriptionvoidCore.BindingConsumer.accept(Core.NamedPat pat, Core.Exp exp, @Nullable Core.IdPat overloadPat, 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, @Nullable Core.IdPat overloadPat) CoreBuilder.id(Core.NamedPat idPat) Creates a reference to a value.CoreBuilder.nonRecValDecl(Pos pos, Core.NamedPat pat, @Nullable Core.IdPat overloadPat, 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, @Nullable Core.IdPat overloadPat, 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 Consumer<Core.NamedPat> SuchThatShuttle.FreeFinder.consumer(package private) final Map<Core.NamedPat, Core.Exp> Extents.Extent.definitionsContains definitions, such as "name = d.dname".(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.map(package private) final List<Core.NamedPat> SuchThatShuttle.DeferredStepList.refs(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 TypeMethodDescriptionprivate Core.NamedPatResolver.getIdPat(Ast.Id id, Core.NamedPat coreId) Converts 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 TypeMethodDescriptionstatic voidCompiles.acceptBinding(Core.NamedPat namedPat, List<Binding> bindings) abstract voidEnvironment.collect(Core.NamedPat id, Consumer<Binding> consumer) Calls a consumer for all bindings ofid.voidEnvironments.EmptyEnvironment.collect(Core.NamedPat id, Consumer<Binding> consumer) voidEnvironments.MapEnvironment.collect(Core.NamedPat id, Consumer<Binding> consumer) voidEnvironments.SubEnvironment.collect(Core.NamedPat id, Consumer<Binding> consumer) (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) private Core.NamedPatResolver.getIdPat(Ast.Id id, Core.NamedPat coreId) Converts an Id that is a reference to a variable into an IdPat that represents its declaration.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) abstract @Nullable BindingEnvironment.getOpt2(Core.NamedPat id) Alternative version ofEnvironment.getOpt(Core.NamedPat).@Nullable BindingEnvironments.EmptyEnvironment.getOpt2(Core.NamedPat id) @Nullable BindingEnvironments.MapEnvironment.getOpt2(Core.NamedPat id) @Nullable BindingEnvironments.SubEnvironment.getOpt2(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, Iterable<? extends Core.FromStep> followingSteps, PairList<Core.IdPat, Core.Exp> idPats) Analyzes the extent of a pattern in an expression and creates anExtents.Analysis.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) 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) privateAnalysis(SortedMap<Core.NamedPat, Core.Exp> boundPats, Set<Core.NamedPat> goalPats, Core.Exp extentExp, List<Core.Exp> satisfiedFilters, List<Core.Exp> remainingFilters) privateAnalysis(SortedMap<Core.NamedPat, Core.Exp> boundPats, Set<Core.NamedPat> goalPats, Core.Exp extentExp, List<Core.Exp> satisfiedFilters, List<Core.Exp> remainingFilters) privateAnalyzer(TypeSystem typeSystem, Environment env, Map<Core.NamedPat, Analyzer.MutableUse> map, Deque<EnvVisitor.FromContext> fromStack) Private constructor.(package private)DeferredStepList(SuchThatShuttle.FreeFinder freeFinder, List<Core.NamedPat> refs) (package private)Extent(TypeSystem typeSystem, Core.Pat pat, SortedMap<Core.NamedPat, Core.Exp> boundPats, PairList<Core.IdPat, Core.Exp> idPats) (package private)FreeFinder(TypeSystem typeSystem, Environment env, Deque<EnvVisitor.FromContext> fromStack, Consumer<Core.NamedPat> consumer) (package private)MapEnvironment(Environment parent, com.google.common.collect.ImmutableMap<Core.NamedPat, Binding> map, com.google.common.collect.ImmutableMultimap<Core.IdPat, Binding> instanceMap) 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, Map<String, Pair<Core.IdPat, List<Core.IdPat>>> resolvedOverloads, Environment env, @Nullable Session session, @Nullable Core.Exp current) privateResolver(TypeMap typeMap, NameGenerator nameGenerator, Map<Pair<Core.NamedPat, Type>, Core.NamedPat> variantIdMap, Map<String, Pair<Core.IdPat, List<Core.IdPat>>> resolvedOverloads, Environment env, @Nullable Session session, @Nullable Core.Exp current) -
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.inst(Core.NamedPat id, Core.IdPat overloadId, Object value) static BindingBinding.inst(Core.NamedPat id, Core.IdPat overloadId, Core.Exp exp) static BindingBinding.of(Core.NamedPat id) static BindingBinding.of(Core.NamedPat id, Object value) static BindingBinding.of(Core.NamedPat id, Core.Exp exp) static BindingBinding.over(Core.NamedPat id) static BindingBinding.over(Core.NamedPat id, Object value) Constructors in net.hydromatic.morel.type with parameters of type Core.NamedPatModifierConstructorDescriptionprivateBinding(Core.NamedPat id, @Nullable Core.IdPat overloadId, Core.Exp exp, Object value, boolean parameter, Binding.Kind kind)