Package rocket.generator.rebind

Examples of rocket.generator.rebind.SourceWriter


   */
  public SourceWriter createSourceWriter(final ClassSourceFileComposerFactory composerFactory, final PrintWriter printWriter) {
    final com.google.gwt.user.rebind.SourceWriter sourceWriter = composerFactory.createSourceWriter(this.getGeneratorContext(),
        printWriter);

    return new SourceWriter() {
      public void beginJavaDocComment() {
        sourceWriter.beginJavaDocComment();
      }

      public void endJavaDocComment() {
View Full Code Here


    this.addImplementedInterfacesToClassSourceFileComposerFactory(composerFactory);
    this.setClassJavaDoc(composerFactory);

    final TypeOracleGeneratorContext context = (TypeOracleGeneratorContext) this.getGeneratorContext();
    final PrintWriter printWriter = this.getPrintWriter();
    final SourceWriter writer = context.createSourceWriter(composerFactory, printWriter);

    try {
      context.branch();
      this.log();

      this.writeInitializers(writer);
      this.writeConstructors(writer);
      this.writeFields(writer);
      this.writeMethods(writer);
      this.writeNestedTypes(writer);
      context.unbranch();

    } catch (final GeneratorException caught) {
      this.handleWriteFailure(writer, caught);

      throw caught;
    } finally {
      writer.commit();
    }
  }
View Full Code Here

TOP

Related Classes of rocket.generator.rebind.SourceWriter

Copyright © 2018 www.massapicom. 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.