Package net.hydromatic.morel.ast
Class Core.Tuple
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.Tuple
- Enclosing class:
Core
Tuple expression. Also implements record expression.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTuple(RecordLikeType type, com.google.common.collect.ImmutableList<Core.Exp> args) -
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.arg(int i) Returns theith argument.copy(TypeSystem typeSystem, List<Core.Exp> args) booleanvoidforEachArg(ObjIntConsumer<Core.Exp> action) inthashCode()booleanReturns whether this expression is a constant.type()Returns the type.(package private) AstWriter
-
Field Details
-
args
-
-
Constructor Details
-
Tuple
Tuple(RecordLikeType type, com.google.common.collect.ImmutableList<Core.Exp> args)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
type
Description copied from class:Core.ExpReturns the type. -
forEachArg
- Overrides:
forEachArgin classCore.Exp
-
arg
Description copied from class:Core.ExpReturns theith argument. -
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
-
unparse
-
copy
-
isConstant
public boolean isConstant()Description copied from class:Core.ExpReturns whether this expression is a constant.Examples include literals
1,true, constructors applied to constants, records and tuples whose arguments are constant.- Overrides:
isConstantin classCore.Exp
-