Package net.hydromatic.morel.ast
Class Core.Fn
java.lang.Object
net.hydromatic.morel.ast.AstNode
net.hydromatic.morel.ast.Core.BaseNode
net.hydromatic.morel.ast.Core.Exp
net.hydromatic.morel.ast.Core.Fn
- Enclosing class:
Core
Lambda expression.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccepts a shuttle, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.voidAccepts a visitor, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.copy(Core.IdPat idPat, Core.Exp exp) type()Returns the type.(package private) AstWriterMethods inherited from class net.hydromatic.morel.ast.Core.Exp
arg, forEachArg, isCallTo, isConstant
-
Field Details
-
idPat
-
exp
-
-
Constructor Details
-
Fn
Fn(FnType type, Core.IdPat idPat, Core.Exp exp)
-
-
Method Details
-
type
Description copied from class:Core.ExpReturns the type. -
unparse
-
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. -
accept
Description copied from class:AstNodeAccepts a visitor, calling theShuttle.visit(net.hydromatic.morel.ast.Ast.Literal)method appropriate to the type of this node, and returning the result.- Overrides:
acceptin classCore.BaseNode
-
copy
-