Package net.hydromatic.morel.ast
Class Core.RecordSelector
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.RecordSelector
- Enclosing class:
Core
Record selector function.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe ordinal of the field in the record or tuple that is to be accessed. -
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.booleaninthashCode()type()Returns the type.(package private) AstWriterMethods inherited from class net.hydromatic.morel.ast.Core.Exp
arg, forEachArg, isCallTo, isConstant
-
Field Details
-
slot
public final int slotThe ordinal of the field in the record or tuple that is to be accessed.
-
-
Constructor Details
-
RecordSelector
RecordSelector(FnType fnType, int slot) Creates a record selector.
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
fieldName
-
type
Description copied from class:Core.ExpReturns the type. -
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
-