Examples of clone()


Examples of org.openrdf.query.algebra.ValueExpr.clone()

        for (int i = constraints.size() - 1; i >= 0; i--) {
          ValueExpr constraint = constraints.get(i);
          TupleExpr right = node.getRightArg();
          Set<String> filterVars = new VarFinder(constraint).getVars();
          if (right.getBindingNames().containsAll(filterVars)) {
            node.setRightArg(new Filter(right.clone(), constraint.clone()));
          }
          else {
            and.addArg(constraint);
          }
        }
View Full Code Here

Examples of org.openrdf.query.algebra.Var.clone()

    for (int i = 0; i < node.jjtGetNumChildren(); i++) {
      ValueExpr resource = (ValueExpr)node.jjtGetChild(i).jjtAccept(this, null);

      sameTerms.add(new SameTerm(subjVar.clone(), resource));
      sameTerms.add(new SameTerm(objVar.clone(), resource));
    }

    ValueExpr constraint = new Or(sameTerms);

    result = new Filter(result, constraint);
View Full Code Here

Examples of org.openrdf.sail.rdbms.algebra.RefIdColumn.clone()

          longValue = new NumberValue(vf.getInternalId(id));
        }
        catch (RdbmsException e) {
          throw new RdbmsException(e);
        }
        SqlEq eq = new SqlEq(var.clone(), longValue);
        if (in == null) {
          in = eq;
        }
        else {
          in = new SqlOr(in, eq);
View Full Code Here

Examples of org.openrdf.sail.rdbms.algebra.SelectQuery.clone()

    names.retainAll(right.getBindingNames());
    if (names.isEmpty()) {
      return;
    }
    left = left.clone();
    right = right.clone();
    filterOn(left, right);
    mergeSelectClause(left, right);
    left.addLeftJoin(right);
    List<SqlExpr> filters = new ArrayList<SqlExpr>();
    if (node.getCondition() != null) {
View Full Code Here

Examples of org.openrdf.sail.rdbms.algebra.base.SqlExpr.clone()

      SqlExpr prev = null;
      SqlCase scase = (SqlCase)arg;
      for (Entry entry : scase.getEntries()) {
        SqlExpr condition = entry.getCondition();
        if (rep == null) {
          rep = and(condition.clone(), isNull(entry.getResult().clone()));
          prev = not(condition.clone());
        }
        else {
          rep = or(rep, and(and(prev.clone(), condition.clone()), isNull(entry.getResult().clone())));
          prev = and(prev, not(condition.clone()));
View Full Code Here

Examples of org.openrdf.sail.rdbms.schema.ValueTypes.clone()

      }
      if (selectVars.containsKey(var.getName())) {
        ColumnVar existing = selectVars.get(var.getName());
        existing.setValue(null);
        ValueTypes types = existing.getTypes();
        types = types.clone().merge(var.getTypes());
        existing.setTypes(types);
      }
      else {
        String name = var.getAlias() + var.getColumn();
        ColumnVar as = var.as(getAlias(), name);
View Full Code Here

Examples of org.opensaml.SAMLSubject.clone()

                    SAMLAuthenticationStatement.AuthenticationMethod_Password,
                    notBefore, null, null, null);

            List<SAMLStatement> statements = new ArrayList<SAMLStatement>();
            if (data.getClaimDialect() != null && data.getClaimElem() != null) {
                SAMLStatement attrStatement = createSAMLAttributeStatement((SAMLSubject)subject.clone(), data, config);
                statements.add(attrStatement);
            }
            statements.add(authStmt);

            SAMLAssertion assertion = new SAMLAssertion(config.issuerName,
View Full Code Here

Examples of org.openscience.cdk.interfaces.IAtom.clone()

            }
            if (atomInRange != null) {
                IAtomContainer tocopyclone =
                    atomInRange.getBuilder().newInstance(IAtomContainer.class);
                try {
          tocopyclone.addAtom((IAtom) atomInRange.clone());
        } catch (CloneNotSupportedException e1) {
          // TODO Auto-generated catch block
          e1.printStackTrace();
        }
                addToClipboard(sysClip, tocopyclone);
View Full Code Here

Examples of org.openscience.cdk.interfaces.IMolecule.clone()

    } else if(dealkylmatcher.matches()) {
      StereoInChIToMolecule.primeCacheForInChI(inchi);
      IMolecule mol = ConverterToInChI.getMolFromInChI(inchi);
      StructureConverter.configureMolecule(mol);
      //System.out.println(mol.getAtomCount());
      mol = (IMolecule)mol.clone();

      String atomStr = dealkylmatcher.group(2);
      //if(atomStr == null) return null;
      int alkylSize = 0;
      String groupStr = dealkylmatcher.group(3);
View Full Code Here

Examples of org.opentripplanner.routing.core.TraverseModeSet.clone()

            tag = new TurnRestrictionTag(via, TurnRestrictionType.ONLY_TURN, Direction.U);
        } else {
            LOG.warn(addBuilderAnnotation(new TurnRestrictionUnknown(relation.getTag("restriction"))));
            return;
        }
        tag.modes = modes.clone();

        // set the time periods for this restriction, if applicable
        if (relation.hasTag("day_on") && relation.hasTag("day_off") && relation.hasTag("hour_on")
                && relation.hasTag("hour_off")) {
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.