Examples of clone()


Examples of com.google.caja.parser.ParseTreeNode.clone()

  protected boolean createSubstitutes(
      List<ParseTreeNode> substitutes,
      Map<String, ParseTreeNode> bindings) {
    ParseTreeNode substitute = bindings.get(getIdentifier());
    if (substitute != null) {
      substitutes.add(substitute.clone());
      return true;
    }
    return false;
  }
View Full Code Here

Examples of com.google.caja.parser.js.FunctionConstructor.clone()

                    new Reference(new Identifier(unk, "z")))))));
    checkSucceeds(
        new Block(
            unk,
            Arrays.asList(
                new FunctionDeclaration((FunctionConstructor) fc.clone()))),
        js(fromString(
            ""
            // x and y___ are formals, but z is free to the function.
            + "var dis___ = IMPORTS___;"
            + "{"
View Full Code Here

Examples of com.google.clearsilver.jsilver.syntax.node.PCommand.clone()

        new AStringExpression(new TString("\"" + escapeMode.getEscapeCommand() + "\""));

    PCommand node = start.getPCommand();
    AEscapeCommand escape =
        new AEscapeCommand(new ACsOpenPosition(new TCsOpen("<?cs ", 0, 0)), escapeExpr,
            (PCommand) node.clone());

    node.replaceBy(escape);
  }

  @Override
View Full Code Here

Examples of com.google.code.appengine.awt.RenderingHints.clone()

     */
    public void setRenderingHints(Map hints) {
        this.hints.clear();
        if (hints instanceof RenderingHints) {
          RenderingHints renderingHints = (RenderingHints)hints;
          this.hints.putAll((Map)renderingHints.clone());
        } else {
          this.hints.putAll(hints);
        }
    }

View Full Code Here

Examples of com.google.code.appengine.awt.geom.Area.clone()

      newArea=new Area( generalPaths[ i ] );

      //---if this is not the first area, subtract cumulative area
      if( i > 0 )
      {
        areas[ i ]=(Area) newArea.clone();
        areas[ i ].subtract( totalArea );

        totalArea=newArea;
      }
      else
View Full Code Here

Examples of com.google.code.lightssh.project.party.entity.Party.clone()

      party.setId( sequenceManager.nextSequenceNumber( party ) );
      dao.create( party );
    }else{
      Party old = dao.read( party );
      if( old != null ){
        original = old.clone();
        ReflectionUtil.assign(party, old);
        dao.update( old );
      }
    }
   
View Full Code Here

Examples of com.google.protobuf.Message.Builder.clone()

                builders.put(type, builder);
            } catch (ReflectiveOperationException e) {
                throw new IllegalStateException("Error building instance", e);
            }
        }
        return builder.clone();
    }
}
View Full Code Here

Examples of com.google.uzaygezen.core.BitVector.clone()

      // int has 32 bits, which fits in each dimensions.
      for (int j = 0; j < spec.getBitsPerDimension().size(); ++j) {
        point[j].copyFrom(data[i][j]);
      }
      sfc.index(point, 0, index);
      pairs.add(Pair.of(index.clone(), i));
    }
    // Sort by Hilbert index.
    Collections.sort(pairs);
    List<int[]> expected = new ArrayList<>(pairs.size());
    for (Pair<BitVector, Integer> pair : pairs) {
View Full Code Here

Examples of com.google.visualization.datasource.datatable.DataTable.clone()

  public static DataTable getRandomDataTable(int tableNum, int numRows,
      long randomSeed) {
    random = new Random(randomSeed);
    DataTable res = new DataTable();
    res.addColumns(dataTables[tableNum].getColumnDescriptions());
    res = res.clone(); // Clones the column descriptions.
    try {
      for (int i = 0; i < numRows; i++) {
        TableRow row = new TableRow();
        for (ColumnDescription colDesc : res.getColumnDescriptions()) {
          Value value = toRandomValue(colDesc.getType());
View Full Code Here

Examples of com.googlecode.aviator.asm.tree.AbstractInsnNode.clone()

                // Insert this new instantiation into the queue to be emitted
                // later.
                worklist.add(newinst);
            } else {
                newInstructions.add(insn.clone(instant));
            }
        }

        // Emit try/catch blocks that are relevant to this method.
        for (Iterator it = tryCatchBlocks.iterator(); it.hasNext();) {
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.