Examples of generate()


Examples of com.fasterxml.uuid.impl.NameBasedGenerator.generate()

       
        UUID uuid_array[] = new UUID[SIZE_OF_TEST_ARRAY];
       
        // now create the array of uuids
        for (int i = 0; i < uuid_array.length; i++) {
            uuid_array[i] = uuid_gen.generate("test name" + i);
        }
       
        // check that none of the UUIDs are null
        checkUUIDArrayForNonNullUUIDs(uuid_array);
       
View Full Code Here

Examples of com.fasterxml.uuid.impl.RandomBasedGenerator.generate()

        UUID uuid_array[] = new UUID[SIZE_OF_TEST_ARRAY];
       
        // now create the array of uuids
        for (int i = 0; i < uuid_array.length; i++)
        {
            uuid_array[i] = uuid_gen.generate();
        }
       
        // check that none of the UUIDs are null
        checkUUIDArrayForNonNullUUIDs(uuid_array);
       
View Full Code Here

Examples of com.fasterxml.uuid.impl.TimeBasedGenerator.generate()

      Thread thread = new Thread(new Runnable() {
        @Override
        public void run() {
          for (int j = 0; j < LOOP_COUNT; j++) {

            String id = timeBasedGenerator.generate().toString();
            boolean wasAdded = generatedIds.add(id);
            if (!wasAdded) {
              duplicatedIds.add(id);
            }
          }
View Full Code Here

Examples of com.google.code.apis.rest.client.CodeGeneration.CodeGenerator.generate()

              }           
            break;
          }
        }
        CodeGenerator codeGenerator = new CodeGenerator(Analyzer.application);
        String code = codeGenerator.generate(CodeGenerator.dogfood_php5);       
        new XmlHttpRequest(code, SettingsDialog.pathToDiscoverer);       
      }
    });
    autoDiscoverPanel.add(autoDiscoverButton);
    applicationPanel.add(autoDiscoverPanel);
View Full Code Here

Examples of com.google.gdata.devtools.eclipse.ProjectCreator.generate()

    String templateContent = new String();
    try {
      ProjectCreator jetGateWay = new ProjectCreator(mainPage.getProjectName(),
          selectedTemplateConfig);
      // 40% work
      templateContent = jetGateWay.generate(
          new SubProgressMonitor(monitor, (int) (0.4 * totalNoOfTicks)), dependencyClasspaths,
          getErrorMessage());
      // 5% work
      IFile templateFile = jetGateWay.addTemplateToProject(mainPage.getProjectName() + "/src",
          templateContent, monitor, (int) (0.05 * totalNoOfTicks));
 
View Full Code Here

Examples of com.google.gwt.core.ext.Generator.generate()

    long before = System.currentTimeMillis();
    PerfLogger.start("Generator '" + generator.getClass().getName()
        + "' produced '" + typeName + "'");
    try {
      String className = generator.generate(logger, this, typeName);
      long after = System.currentTimeMillis();
      if (className == null) {
        msg = "Generator returned null, so the requested type will be used as is";
      } else {
        msg = "Generator returned class '" + className + "'";
View Full Code Here

Examples of com.google.gwt.core.ext.linker.PropertyProviderGenerator.generate()

    String generatorResult = null;
    if (providerGenerator != null) {
      Throwable caught = null;
      try {
        PropertyProviderGenerator gen = providerGenerator.newInstance();
        generatorResult = gen.generate(logger, values, fallback,
            configProperties);
      } catch (InstantiationException e) {
        caught = e;
      } catch (IllegalAccessException e) {
        caught = e;
View Full Code Here

Examples of com.google.gwt.dev.cfg.EntryMethodHolderGenerator.generate()

        return null;
      }

      EntryMethodHolderGenerator entryMethodHolderGenerator = new EntryMethodHolderGenerator();
      String entryMethodHolderTypeName =
          entryMethodHolderGenerator.generate(logger, context, module.getCanonicalName());
      context.finish(logger);
      // Ensures that unification traverses and keeps the class.
      allRootTypes.add(entryMethodHolderTypeName);
      // Ensures that JProgram knows to index this class's methods so that later bootstrap
      // construction code is able to locate the FooEntryMethodHolder.init() function.
View Full Code Here

Examples of com.google.gwt.dev.cfg.PropertyProviderRegistratorGenerator.generate()

      PropertyProviderRegistratorGenerator propertyProviderRegistratorGenerator =
          new PropertyProviderRegistratorGenerator(bindingProperties, configurationProperties);
      StandardGeneratorContext generatorContext = getGeneratorContext();
      // Name based on module canonical name, to avoid collisions resulting from multiple modules
      // with the same rename.
      String propertyProviderRegistratorTypeName = propertyProviderRegistratorGenerator.generate(
          logger, generatorContext, module.getCanonicalName());
      // Ensures that unification traverses and keeps the class.
      allRootTypes.add(propertyProviderRegistratorTypeName);
      // Ensures that JProgram knows to index this class's methods so that later bootstrap
      // construction code is able to locate the FooPropertyProviderRegistrator.register() function.
View Full Code Here

Examples of com.google.gwt.dev.cfg.RuntimeRebindRegistratorGenerator.generate()

      RuntimeRebindRegistratorGenerator runtimeRebindRegistratorGenerator =
          new RuntimeRebindRegistratorGenerator();
      StandardGeneratorContext generatorContext = getGeneratorContext();
      // Name based on module canonical name, to avoid collisions resulting from multiple modules
      // with the same rename.
      String runtimeRebindRegistratorTypeName = runtimeRebindRegistratorGenerator.generate(logger,
          generatorContext, module.getCanonicalName());
      // Ensures that unification traverses and keeps the class.
      allRootTypes.add(runtimeRebindRegistratorTypeName);
      // Ensures that JProgram knows to index this class's methods so that later bootstrap
      // construction code is able to locate the FooRuntimeRebindRegistrator.register() function.
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.