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
FieldsModifier and TypeFieldDescriptionfinal Core.Expfinal @Nullable Core.IdPatIf an 'inst', the overloaded name, otherwise null.final Core.NamedPat -
Constructor Summary
ConstructorsConstructorDescriptionNonRecValDecl(Core.NamedPat pat, Core.Exp exp, @Nullable Core.IdPat overloadPat, Pos pos) -
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, @Nullable Core.IdPat overloadPat) booleanvoidforEachBinding(Core.BindingConsumer consumer) inthashCode()(package private) AstWriter
-
Field Details
-
pat
-
exp
-
overloadPat
If an 'inst', the overloaded name, otherwise null.
-
-
Constructor Details
-
NonRecValDecl
NonRecValDecl(Core.NamedPat pat, Core.Exp exp, @Nullable Core.IdPat overloadPat, 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
-