Package org.partiql.ast
Class With
- java.lang.Object
-
- org.partiql.ast.AstNode
-
- org.partiql.ast.With
-
public final class With extends AstNode
Represents a PartiQL WITH clause.
<with clause> ::= WITH [ RECURSIVE ] <with list>
<with list> ::= <with list element> [ { <comma> <with list element> }... ]
- See Also:
WithListElement
,ExprQuerySet
-
-
Constructor Summary
Constructors Constructor Description With(java.util.List<WithListElement> elements)
Creates a new WITH clause with the specified elements and RECURSIVE set to false.With(java.util.List<WithListElement> elements, boolean isRecursive)
Creates a new WITH clause with the specified elements and RECURSIVE set to the specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(AstVisitor<R,C> visitor, C ctx)
Accepts a generic visitor.java.util.List<AstNode>
getChildren()
Gets theAstNode
children of this node.java.util.List<WithListElement>
getElements()
Returns the list of WITH list elements.boolean
isRecursive()
Returns whether this WITH clause specified RECURSIVE.
-
-
-
Constructor Detail
-
With
public With(@NotNull java.util.List<WithListElement> elements, boolean isRecursive)
Creates a new WITH clause with the specified elements and RECURSIVE set to the specified value.- Parameters:
elements
- the list of WITH list elementsisRecursive
- true if this WITH clause specified RECURSIVE;
-
With
public With(@NotNull java.util.List<WithListElement> elements)
Creates a new WITH clause with the specified elements and RECURSIVE set to false.- Parameters:
elements
- the list of WITH list elements
-
-
Method Detail
-
getChildren
@NotNull public java.util.List<AstNode> getChildren()
Description copied from class:AstNode
Gets theAstNode
children of this node.- Specified by:
getChildren
in classAstNode
- Returns:
- child AST nodes of this node.
-
accept
public <R,C> R accept(@NotNull AstVisitor<R,C> visitor, C ctx)
Description copied from class:AstNode
Accepts a generic visitor.
-
getElements
@NotNull public java.util.List<WithListElement> getElements()
Returns the list of WITH list elements.- Returns:
- the list of WITH list elements
-
isRecursive
public boolean isRecursive()
Returns whether this WITH clause specified RECURSIVE.- Returns:
- whether this WITH clause specified RECURSIVE.
-
-