Package com.google.gwt.user.rebind

Examples of com.google.gwt.user.rebind.SourceWriter.commit()


        sw.println("return x;");
        sw.outdent();
        sw.println("}");
      }

      sw.commit(logger);
    }
  }

  private void writeContextMethods(SourceWriter sw) {
    for (ContextMethod method : model.getMethods()) {
View Full Code Here


        }
      }
      sw.outdent();
      sw.println("}");

      sw.commit(logger);
    }
    return packageName + "." + delegateSimpleName;
  }

  protected abstract Class<?> getEditorDelegateType();
View Full Code Here

      writeAutoBean(type);
    }
    writeDynamicMethods(sw);
    writeEnumSetup(sw);
    writeMethods(sw);
    sw.commit(logger);

    return factory.getCreatedClassName();
  }

  private String getBaseMethodDeclaration(JMethod jmethod) {
View Full Code Here

    if (type.isSimpleBean()) {
      writeCreateSimpleBean(sw, type);
    }
    writeTraversal(sw, type);
    sw.commit(logger);
  }

  /**
   * For interfaces that consist of nothing more than getters and setters,
   * create a map-based implementation that will allow the AutoBean's internal
View Full Code Here

    generateServiceDefTargetImpl(srcWriter);

    generateProxyMethods(srcWriter, sto);

    srcWriter.commit(logger);

    return getProxyQualifiedName();
  }

  /*
 
View Full Code Here

            for (BeanRegistryConfig config : beanConfigLoader.getBeanRegistryConfigs()) {
                beanTypes.addAll(scanBeans(easyLogger, context, config.getBeanClassSelector(), config.getPatterns()));
            }

            write(easyLogger, sourceWriter, context, generatedClassName, beanTypes);
            sourceWriter.commit(logger);

        } finally {
            BeanValidationConfigHolder.clear();
        }
View Full Code Here

        SourceWriter sourceWriter = getSourceWriter(logger, context, packageName, beanClassName, type);
        if (sourceWriter == null) {
            return qualifiedBeanClassName;
        }
        write(logger, sourceWriter, typeOracle, type, context);
        sourceWriter.commit(logger);
        return qualifiedBeanClassName;

    }

    protected SourceWriter getSourceWriter(
View Full Code Here

        }

        typeRegistryThreadLocal.set(new HashSet<String>());
        write(new EasyTreeLogger(logger), sourceWriter, context, beanType, className);
        typeRegistryThreadLocal.remove();
        sourceWriter.commit(logger);
        return qualifiedBeanClassName;
    }

    private static SourceWriter getSourceWriter(TreeLogger logger, GeneratorContext context, String packageName, String beanClassName) {
View Full Code Here

            return qualifiedValidatorClassName;
        }

        write(logger, context, sourceWriter, messagesClass);

        sourceWriter.commit(logger);

        return qualifiedValidatorClassName;
    }

View Full Code Here

        BeanValidationConfig config = BeanValidationConfigHolder.getConfig();
        ValidationOracle validationOracle = new ValidationOracle(beanOracle);

        write(logger, context, sourceWriter, validationOracle);

        sourceWriter.commit(logger);

        return qualifiedValidatorClassName;
    }

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.