Package lupos.gui.operatorgraph.visualeditor.queryeditor.operators

Examples of lupos.gui.operatorgraph.visualeditor.queryeditor.operators.Graph


  private String findParentNodes(final Operator op, String query) {
    for (final Operator preOp : op.getPrecedingOperators()) {
      if (preOp instanceof Filter) {
        query = preOp.serializeOperator() + query;
      } else if (preOp instanceof Graph) {
        final Graph g = (Graph) preOp;

        query = "GRAPH " + g.toString() + " {\n" + query + "}\n";
      } else if (preOp instanceof Optional) { // join left subtree...
        for (final OperatorIDTuple<Operator> opIDt : preOp
            .getSucceedingOperators()) {
          if (!opIDt.getOperator().equals(op) && opIDt.getId() == 0) {
            query = opIDt
View Full Code Here


    if (child instanceof ASTVar) {
      item = new Variable(((ASTVar) child).getName());
    }


    final Graph g = new Graph(this.prefix, item);

    for (int i = 1; i < numberChildren; i++) {
      final Operator op = (Operator) node.jjtGetChild(i).jjtAccept(
          this, data);

      g.addSucceedingOperator(new OperatorIDTuple<Operator>(op, i - 1));
    }

    return g;
  }
View Full Code Here

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.queryeditor.operators.Graph

Copyright © 2018 www.massapicom. 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.