Package net.hydromatic.morel.ast
Class Ast.From
java.lang.Object
net.hydromatic.morel.ast.AstNode
net.hydromatic.morel.ast.Ast.Exp
net.hydromatic.morel.ast.Ast.From
- Enclosing class:
Ast
From expression.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @Nullable Ast.Expfinal com.google.common.collect.ImmutableList<Ast.FromStep> -
Constructor Summary
ConstructorsConstructorDescriptionFrom(Pos pos, com.google.common.collect.ImmutableList<Ast.FromStep> steps, @Nullable Ast.Exp implicitYieldExp) -
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(List<Ast.FromStep> steps, @Nullable Ast.Exp implicitYieldExp) Creates a copy of thisFromwith given contents, orthisif the contents are the same.(package private) static @Nullable Ast.ExpimplicitYieldExp(Pos pos, List<Ast.FromStep> steps) booleanReturns whether thisfromexpression ends with acomputestep.(package private) AstWriterMethods inherited from class net.hydromatic.morel.ast.Ast.Exp
args, forEachArg
-
Field Details
-
steps
-
implicitYieldExp
-
-
Constructor Details
-
From
From(Pos pos, com.google.common.collect.ImmutableList<Ast.FromStep> steps, @Nullable Ast.Exp implicitYieldExp)
-
-
Method Details
-
implicitYieldExp
-
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 thisFromwith given contents, orthisif the contents are the same. -
isCompute
public boolean isCompute()Returns whether thisfromexpression ends with acomputestep. If so, it is a monoid comprehension, not a monad comprehension, and its type is a scalar value (or record), not a list.
-