Class SqlSpecialOperator

    • Constructor Detail

      • SqlSpecialOperator

        public SqlSpecialOperator​(java.lang.String name,
                                  SqlKind kind)
      • SqlSpecialOperator

        public SqlSpecialOperator​(java.lang.String name,
                                  SqlKind kind,
                                  int prec)
    • Method Detail

      • reduceExpr

        public SqlSpecialOperator.ReduceResult reduceExpr​(int ordinal,
                                                          SqlSpecialOperator.TokenSequence list)
        Reduces a list of operators and arguments according to the rules of precedence and associativity. Returns the ordinal of the node which replaced the expression.

        The default implementation throws UnsupportedOperationException.

        ordinal - indicating the ordinal of the current operator in the list on which a possible reduction can be made
        list - List of alternating SqlParserUtil.ToTreeListItem and SqlNode
        ordinal of the node which replaced the expression