Class 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.
    • 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 elements
        isRecursive - 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 the AstNode children of this node.
        Specified by:
        getChildren in class AstNode
        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.
        Specified by:
        accept in class AstNode
      • 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.