Package net.hydromatic.morel.ast
Class Ast.Query
java.lang.Object
net.hydromatic.morel.ast.AstNode
net.hydromatic.morel.ast.Ast.Exp
net.hydromatic.morel.ast.Ast.Query
- Direct Known Subclasses:
Ast.Exists,Ast.Forall,Ast.From
- Enclosing class:
Ast
Base class for "
from", "exists" or "forall"
expression.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQuery(Pos pos, Op op, com.google.common.collect.ImmutableList<Ast.FromStep> steps) -
Method Summary
Modifier and TypeMethodDescriptionabstract Ast.Querycopy(List<Ast.FromStep> steps) Creates a copy of thisFromorExistswith given contents, orthisif the contents are the same.booleanReturns whether thisfromexpression ends with acomputestep.booleanisInto()Returns whether thisfromexpression ends with asintostep.(package private) AstWriterMethods inherited from class net.hydromatic.morel.ast.Ast.Exp
accept, args, forEachArg
-
Field Details
-
steps
-
-
Constructor Details
-
Query
Query(Pos pos, Op op, com.google.common.collect.ImmutableList<Ast.FromStep> steps)
-
-
Method Details
-
unparse
-
copy
Creates a copy of thisFromorExistswith 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. -
isInto
public boolean isInto()Returns whether thisfromexpression ends with asintostep. If so, its type is a scalar value (or record), not a list.
-