Examples of WithItem


Examples of net.sf.jsqlparser.statement.select.WithItem

    ExpressionDeParser expressionDeParser = new ExpressionDeParser(selectDeParser, buffer);
    selectDeParser.setExpressionVisitor(expressionDeParser);
    if (select.getWithItemsList() != null && !select.getWithItemsList().isEmpty()) {
      buffer.append("WITH ");
      for (Iterator iter = select.getWithItemsList().iterator(); iter.hasNext();) {
        WithItem withItem = (WithItem)iter.next();
        buffer.append(withItem);
        if (iter.hasNext())
          buffer.append(",");
        buffer.append(" ");
      }
View Full Code Here

Examples of net.sf.jsqlparser.statement.select.WithItem

    throw new Error("Missing return statement in function");
  }

  final public List WithList() throws ParseException {
        ArrayList withItemsList = new ArrayList();
        WithItem with = null;
    jj_consume_token(K_WITH);
    with = WithItem();
                                   withItemsList.add(with);
    label_9:
    while (true) {
View Full Code Here

Examples of net.sf.jsqlparser.statement.select.WithItem

          {if (true) return withItemsList;}
    throw new Error("Missing return statement in function");
  }

  final public WithItem WithItem() throws ParseException {
        WithItem with = new WithItem();
        String name = null;
        List selectItems = null;
        SelectBody selectBody = null;
    name = RelObjectName();
                                with.setName(name);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 79:
      jj_consume_token(79);
      selectItems = SelectItemsList();
      jj_consume_token(80);
                                                   with.setWithItemList(selectItems);
      break;
    default:
      jj_la1[48] = jj_gen;
      ;
    }
    jj_consume_token(K_AS);
    jj_consume_token(79);
    selectBody = SelectBody();
                                         with.setSelectBody(selectBody);
    jj_consume_token(80);
           {if (true) return with;}
    throw new Error("Missing return statement in function");
  }
View Full Code Here

Examples of net.sf.jsqlparser.statement.select.WithItem

        ExpressionDeParser expressionDeParser = new ExpressionDeParser(selectDeParser, buffer);
        selectDeParser.setExpressionVisitor(expressionDeParser);
        if (select.getWithItemsList() != null && !select.getWithItemsList().isEmpty()) {
            buffer.append("WITH ");
            for (Iterator<WithItem> iter = select.getWithItemsList().iterator(); iter.hasNext();) {
                WithItem withItem = iter.next();
                withItem.accept(selectDeParser);
                if (iter.hasNext()) {
                    buffer.append(",");
                }
                buffer.append(" ");
            }
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.WithItem

        if (arity > 0) {
            asExpr = expr;
            expr = (exprType) stack.popNode();
            ctx.setStore(asExpr);
        }
        return new WithItem(expr, asExpr);
    }
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.WithItem

        if (node.with_item != null) {
            for (int i = 0; i < node.with_item.length; i++) {
                if (i > 0) {
                    doc.addRequire(",", lastNode);
                }
                WithItem withItem = (WithItem) node.with_item[i];
                withItem.accept(this);
            }
        }

        doc.addRequire(":", lastNode);
        this.doc.addRequireIndent(":", lastNode);
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.WithItem

                }

                suiteType s = new Suite(suite.body);
                addSpecialsAndClearOriginal(suite, s);

                return new With(new WithItem[] { new WithItem(expr, asOrExpr) }, s);
            case JJTWITH_VAR:
                expr = (exprType) stack.popNode(); //expr
                if (expr != null) {
                    ctx.setStore(expr);
                }
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.WithItem

                }

                suiteType s = new Suite(suite.body);
                addSpecialsAndClearOriginal(suite, s);

                return new With(new WithItem[] { new WithItem(expr, asOrExpr) }, s);
            case JJTWITH_VAR:
                expr = (exprType) stack.popNode(); //expr
                if (expr != null) {
                    ctx.setStore(expr);
                }
View Full Code Here

Examples of org.teiid.language.WithItem

        return null;
      }
      With result = new With();
      ArrayList<WithItem> items = new ArrayList<WithItem>(with.size());
      for (WithQueryCommand withQueryCommand : with) {
      WithItem item = new WithItem();
      item.setTable(translate(withQueryCommand.getGroupSymbol()));
      if (withQueryCommand.getColumns() != null) {
        List<ColumnReference> translatedElements = new ArrayList<ColumnReference>(withQueryCommand.getColumns().size());
            for (ElementSymbol es: withQueryCommand.getColumns()) {
                translatedElements.add(translate(es));
            }
      }
      item.setSubquery(translate(withQueryCommand.getCommand()));
    }
      result.setItems(items);
      return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.