Examples of makeInterface()


Examples of com.google.gwt.user.rebind.ClassSourceFileComposerFactory.makeInterface()

  private String createGinjector(TreeLogger logger, GeneratorContext context, String packageName,
      String requestedName, String newClassName, String moduleName) {
    String ginjectorName = requestedName + "Ginjector";
    ClassSourceFileComposerFactory ginjectorFactory =
        new ClassSourceFileComposerFactory(packageName, ginjectorName);
    ginjectorFactory.makeInterface();
    ginjectorFactory.addImplementedInterface(Ginjector.class.getCanonicalName());
    ginjectorFactory.addImport(GinModules.class.getCanonicalName());
    ginjectorFactory.addAnnotationDeclaration("@GinModules(" + moduleName + ".class)");
    SourceWriter ginjectorWriter = ginjectorFactory.createSourceWriter(context,
        context.tryCreate(logger, packageName, ginjectorName));
View Full Code Here

Examples of com.google.gwt.user.rebind.ClassSourceFileComposerFactory.makeInterface()

    }

    ClassSourceFileComposerFactory composerFactory = new ClassSourceFileComposerFactory(packageName, subType);
    if (isInterface)
    {
      composerFactory.makeInterface();
    }

    if (imports != null)
    {
      for (String imp : imports)
View Full Code Here

Examples of com.google.gwt.user.rebind.ClassSourceFileComposerFactory.makeInterface()

        throws UnableToCompleteException {
        String packageName = type.getQualifiedSourceName() + "_impls";
        String className = type.getSimpleSourceName() + "_RemoteService";
        ClassSourceFileComposerFactory mcf = new ClassSourceFileComposerFactory(packageName,
                className);
        mcf.makeInterface();
        mcf.addImplementedInterface(
            "com.google.gwt.user.client.rpc.RemoteService");

        PrintWriter pw = context.tryCreate(logger, packageName, className);
        if( pw == null ){
View Full Code Here

Examples of com.google.gwt.user.rebind.ClassSourceFileComposerFactory.makeInterface()

        throws UnableToCompleteException {
        String packageName = type.getQualifiedSourceName() + "_impls";
        String className = type.getSimpleSourceName() + "_RemoteServiceAsync";
        ClassSourceFileComposerFactory mcf = new ClassSourceFileComposerFactory(packageName,
                className);
        mcf.makeInterface();
        PrintWriter pw = context.tryCreate(logger, packageName, className);
        if(pw == null){
            return;
        }
        SourceWriter sw = mcf.createSourceWriter(context, pw);
View Full Code Here

Examples of com.google.gwt.user.rebind.ClassSourceFileComposerFactory.makeInterface()

    }

    private ClassSourceFileComposerFactory initComposer() throws UnableToCompleteException {
        ClassSourceFileComposerFactory composer = new ClassSourceFileComposerFactory(getPackageName(), getClassName());
        composer.addImport(Ginjector.class.getCanonicalName());
        composer.makeInterface();
        composer.addImplementedInterface(Ginjector.class.getSimpleName());

        addExtensionInterfaces(composer);

        return composer;
View Full Code Here

Examples of com.google.gwt.user.rebind.ClassSourceFileComposerFactory.makeInterface()

      ClassSourceFileComposerFactory factory =
            new ClassSourceFileComposerFactory(packageName_, className);
      factory.addImport("com.google.gwt.core.client.GWT");
      factory.addImport("com.google.gwt.resources.client.*");
      factory.makeInterface();
      factory.addImplementedInterface("ClientBundle");
      SourceWriter writer = factory.createSourceWriter(context_, printWriter);

      for (JMethod method : commandMethods_)
      {
View Full Code Here

Examples of com.google.gwt.user.rebind.ClassSourceFileComposerFactory.makeInterface()

  private void setup(String packageName, String className, File resourceBundle,
      File targetLocation, Class<? extends Localizable> interfaceClass)
      throws IOException {
    ClassSourceFileComposerFactory factory = new ClassSourceFileComposerFactory(
        packageName, className);
    factory.makeInterface();
    // TODO(jat): need a way to add an @GeneratedFrom annotation.
    factory.setJavaDocCommentForClass(javaDocComment(resourceBundle.getCanonicalPath().replace(
        File.separatorChar, '/')));
    factory.addImplementedInterface(interfaceClass.getName());
    FileOutputStream file = new FileOutputStream(targetLocation);
View Full Code Here

Examples of com.google.gwt.user.rebind.ClassSourceFileComposerFactory.makeInterface()

                packageName,
                shortName + genericTypeParameters
        );

        if (createWhat == ClassSourceFileComposerFactory.JavaSourceCategory.INTERFACE) {
            composerFactory.makeInterface();
        }

        if (annotationDeclarations != null) {
            for (String annotationDeclaration : annotationDeclarations) {
                composerFactory.addAnnotationDeclaration(annotationDeclaration);
View Full Code Here

Examples of com.google.gwt.user.rebind.ClassSourceFileComposerFactory.makeInterface()

    }

    private ClassSourceFileComposerFactory initComposer() throws UnableToCompleteException {
        ClassSourceFileComposerFactory composer = new ClassSourceFileComposerFactory(getPackageName(), getClassName());
        composer.addImport(Ginjector.class.getCanonicalName());
        composer.makeInterface();
        composer.addImplementedInterface(Ginjector.class.getSimpleName());

        addExtensionInterfaces(composer);

        return composer;
View Full Code Here

Examples of com.google.gwt.user.rebind.ClassSourceFileComposerFactory.makeInterface()

        throws UnableToCompleteException {
        String packageName = type.getQualifiedSourceName() + "_impls";
        String className = type.getSimpleSourceName() + "_RemoteService";
        ClassSourceFileComposerFactory mcf = new ClassSourceFileComposerFactory(packageName,
                className);
        mcf.makeInterface();
        mcf.addImplementedInterface(
            "com.google.gwt.user.client.rpc.RemoteService");

        PrintWriter pw = context.tryCreate(logger, packageName, className);
        if( pw == null ){
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.