Package net.hydromatic.morel.ast
Class Ast.ValDecl
java.lang.Object
net.hydromatic.morel.ast.AstNode
net.hydromatic.morel.ast.Ast.Decl
net.hydromatic.morel.ast.Ast.ValDecl
- Enclosing class:
Ast
Parse tree node of a value declaration.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedValDecl(Pos pos, boolean rec, com.google.common.collect.ImmutableList<Ast.ValBind> valBinds) -
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(Iterable<Ast.ValBind> valBinds) Creates a copy of thisValDeclwith given contents, orthisif the contents are the same.booleaninthashCode()(package private) AstWriter
-
Field Details
-
rec
public final boolean rec -
valBinds
-
-
Constructor Details
-
ValDecl
protected ValDecl(Pos pos, boolean rec, com.google.common.collect.ImmutableList<Ast.ValBind> valBinds)
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
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. -
unparse
-
copy
Creates a copy of thisValDeclwith given contents, orthisif the contents are the same.
-