Package net.hydromatic.morel.ast
Class Core.NonRecValDecl
java.lang.Object
net.hydromatic.morel.ast.AstNode
net.hydromatic.morel.ast.Core.BaseNode
net.hydromatic.morel.ast.Core.Decl
net.hydromatic.morel.ast.Core.ValDecl
net.hydromatic.morel.ast.Core.NonRecValDecl
- Enclosing class:
Core
Non-recursive value declaration.
- See Also:
-
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.NamedPat pat, Core.Exp exp) booleanvoidforEachBinding(Core.BindingConsumer consumer) inthashCode()(package private) AstWriter
-
Field Details
-
pat
-
exp
-
-
Constructor Details
-
NonRecValDecl
NonRecValDecl(Core.NamedPat pat, Core.Exp exp, Pos pos)
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
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.- Specified by:
acceptin classCore.ValDecl
-
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
-
forEachBinding
- Specified by:
forEachBindingin classCore.ValDecl
-