Uses of Class
net.hydromatic.morel.ast.Ast.Pat
Packages that use Ast.Pat
Package
Description
Abstract syntax tree.
Validates programs
(represented as
AstNode),
deduces their type,
and compiles them into code that can be evaluated.-
Uses of Ast.Pat in net.hydromatic.morel.ast
Subclasses of Ast.Pat in net.hydromatic.morel.astModifier and TypeClassDescriptionstatic classPattern that is a pattern annotated with a type.static classLayered pattern.static classType constructor pattern with no argument.static classType constructor pattern with an argument.static classNamed pattern, the pattern analog of theAst.Idexpression.static classPattern build from an infix operator applied to two patterns.static classList pattern, the pattern analog of theAst.ListExpexpression.static classLiteral pattern, the pattern analog of theAst.Literalexpression.static classRecord pattern.static classTuple pattern, the pattern analog of theAst.Tupleexpression.static classWildcard pattern.Fields in net.hydromatic.morel.ast declared as Ast.PatModifier and TypeFieldDescriptionfinal Ast.PatAst.InfixPat.p0final Ast.PatAst.InfixPat.p1final Ast.PatAst.AnnotatedPat.patfinal Ast.PatAst.AsPat.patfinal Ast.PatAst.ConPat.patfinal Ast.PatAst.Match.patfinal Ast.PatAst.Scan.patfinal Ast.PatAst.ValBind.patFields in net.hydromatic.morel.ast with type parameters of type Ast.PatModifier and TypeFieldDescriptionAst.ListPat.argsAst.RecordPat.argsAst.TuplePat.argsAst.FunMatch.patListMethods in net.hydromatic.morel.ast that return Ast.PatModifier and TypeMethodDescriptionabstract Ast.Patprotected Ast.PatShuttle.visit(Ast.AnnotatedPat annotatedPat) protected Ast.Patprotected Ast.Patprotected Ast.PatShuttle.visit(Ast.InfixPat infixPat) protected Ast.PatShuttle.visit(Ast.ListPat listPat) protected Ast.PatShuttle.visit(Ast.LiteralPat literalPat) protected Ast.PatShuttle.visit(Ast.RecordPat recordPat) protected Ast.PatShuttle.visit(Ast.TuplePat tuplePat) protected Ast.PatShuttle.visit(Ast.WildcardPat wildcardPat) Methods in net.hydromatic.morel.ast with parameters of type Ast.PatModifier and TypeMethodDescriptionAstBuilder.annotatedPat(Pos pos, Ast.Pat pat, Ast.Type type) Creates a copy of thisAnnotatedPatwith given contents, orthisif the contents are the same.Creates a copy of thisAsPatwith given contents, orthisif the contents are the same.Creates a copy of thisConPatwith given contents, orthisif the contents are the same.Creates a copy of thisInfixPatwith given contents and same operator, orthisif the contents are the same.Creates a copy of thisMatchwith given contents, orthisif the contents are the same.Creates a copy of thisValBindwith given contents, orthisif the contents are the same.Method parameters in net.hydromatic.morel.ast with type arguments of type Ast.PatModifier and TypeMethodDescriptionCreates a copy of thisListPatwith given contents, orthisif the contents are the same.Creates a copy of thisTuplePatwith given contents, orthisif the contents are the same.voidAst.AnnotatedPat.forEachArg(ObjIntConsumer<Ast.Pat> action) voidAst.AsPat.forEachArg(ObjIntConsumer<Ast.Pat> action) voidAst.ConPat.forEachArg(ObjIntConsumer<Ast.Pat> action) voidAst.InfixPat.forEachArg(ObjIntConsumer<Ast.Pat> action) voidAst.ListPat.forEachArg(ObjIntConsumer<Ast.Pat> action) voidAst.Pat.forEachArg(ObjIntConsumer<Ast.Pat> action) voidAst.RecordPat.forEachArg(ObjIntConsumer<Ast.Pat> action) voidAst.TuplePat.forEachArg(ObjIntConsumer<Ast.Pat> action) AstBuilder.funMatch(Pos pos, String name, Iterable<? extends Ast.Pat> patList, Ast.Type returnType, Ast.Exp exp) voidConstructors in net.hydromatic.morel.ast with parameters of type Ast.PatModifierConstructorDescription(package private)AnnotatedPat(Pos pos, Ast.Pat pat, Ast.Type type) (package private)(package private)(package private)(package private)(package private)(package private)Constructor parameters in net.hydromatic.morel.ast with type arguments of type Ast.PatModifierConstructorDescription(package private)FunMatch(Pos pos, String name, com.google.common.collect.ImmutableList<Ast.Pat> patList, @Nullable Ast.Type returnType, Ast.Exp exp) (package private)(package private)RecordPat(Pos pos, boolean ellipsis, com.google.common.collect.ImmutableSortedMap<String, Ast.Pat> args) (package private) -
Uses of Ast.Pat in net.hydromatic.morel.compile
Methods in net.hydromatic.morel.compile that return Ast.PatModifier and TypeMethodDescriptionprivate Ast.PatTypeResolver.deducePatType(TypeResolver.TypeEnv env, Ast.Pat pat, Map<Ast.IdPat, Unifier.Term> termMap, NavigableSet<String> labelNames, Unifier.Variable v) Derives a type term for a pattern, collecting the names of pattern variables.private Ast.PatTypeResolver.patTuple(TypeResolver.TypeEnv env, List<Ast.Pat> patList) Converts a list of patterns to a singleton pattern or tuple pattern.Methods in net.hydromatic.morel.compile with parameters of type Ast.PatModifier and TypeMethodDescriptionprivate Ast.PatTypeResolver.deducePatType(TypeResolver.TypeEnv env, Ast.Pat pat, Map<Ast.IdPat, Unifier.Term> termMap, NavigableSet<String> labelNames, Unifier.Variable v) Derives a type term for a pattern, collecting the names of pattern variables.(package private) static voidprivate Core.Patprivate Core.Patprivate Core.PatConverts a pattern to Core.Method parameters in net.hydromatic.morel.compile with type arguments of type Ast.PatModifier and TypeMethodDescription(package private) static voidprivate Ast.PatTypeResolver.patTuple(TypeResolver.TypeEnv env, List<Ast.Pat> patList) Converts a list of patterns to a singleton pattern or tuple pattern.