Class GridSqlElement

    • Constructor Detail

      • GridSqlElement

        protected GridSqlElement​(List<GridSqlAst> children)
        Parameters:
        children - Initial child list.
    • Method Detail

      • resultType

        public GridSqlType resultType()
        Specified by:
        resultType in interface GridSqlAst
        Returns:
        Optional expression result type (if this is an expression and result type is known).
      • resultType

        public GridSqlElement resultType​(GridSqlType type)
        Parameters:
        type - Optional expression result type (if this is an expression and result type is known).
        Returns:
        this.
      • child

        public <E extends GridSqlAst> E child()
        Get the first child.
        Specified by:
        child in interface GridSqlAst
        Returns:
        Child element.
      • child

        public <E extends GridSqlAst> E child​(int idx)
        Get child by index.
        Specified by:
        child in interface GridSqlAst
        Parameters:
        idx - Index of the requested child.
        Returns:
        Child element.
      • child

        public <E extends GridSqlAst> void child​(int idx,
                                                 E child)
        Set child.
        Specified by:
        child in interface GridSqlAst
        Parameters:
        idx - Index of the requested child.
        child - Child element.
      • size

        public int size()
        Specified by:
        size in interface GridSqlAst
        Returns:
        Number of child nodes.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object