Package net.hydromatic.morel.ast
Class Ast.Pat
java.lang.Object
net.hydromatic.morel.ast.AstNode
net.hydromatic.morel.ast.Ast.Pat
- Direct Known Subclasses:
Ast.AnnotatedPat,Ast.AsPat,Ast.Con0Pat,Ast.ConPat,Ast.IdPat,Ast.InfixPat,Ast.ListPat,Ast.LiteralPat,Ast.RecordPat,Ast.TuplePat,Ast.WildcardPat
- Enclosing class:
Ast
Base class for a pattern.
For example, "x" in "val x = 5" is a Ast.IdPat;
the "(x, y) in "val (x, y) = makePair 1 2" is a Ast.TuplePat.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Ast.PatAccepts a shuttle, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.voidforEachArg(ObjIntConsumer<Ast.Pat> action) void
-
Constructor Details
-
Pat
-
-
Method Details
-
forEachArg
-
accept
Description copied from class:AstNodeAccepts a shuttle, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result. -
visit
-