Examples of beginType()


Examples of com.hannesdorfmann.fragmentargs.repacked.com.squareup.javawriter.JavaWriter.beginType()

        JavaFileObject jfo = filer.createSourceFile(qualifiedBuilderName, orig);
        Writer writer = jfo.openWriter();
        JavaWriter jw = new JavaWriter(writer);
        writePackage(jw, entry.getKey());
        jw.emitImports("android.os.Bundle");
        jw.beginType(builder, "class", EnumSet.of(Modifier.PUBLIC, Modifier.FINAL));
        jw.emitField("Bundle", "mArguments", EnumSet.of(Modifier.PRIVATE, Modifier.FINAL),
            "new Bundle()");
        jw.emitEmptyLine();

        Set<AnnotatedField> required =
View Full Code Here

Examples of com.hannesdorfmann.fragmentargs.repacked.com.squareup.javawriter.JavaWriter.beginType()

      jw.emitPackage(FragmentArgs.AUTO_MAPPING_PACKAGE);
      // Imports
      jw.emitImports("android.os.Bundle");

      // Class
      jw.beginType(FragmentArgs.AUTO_MAPPING_CLASS_NAME, "class",
          EnumSet.of(Modifier.PUBLIC, Modifier.FINAL), null,
          FragmentArgsInjector.class.getCanonicalName());

      jw.emitEmptyLine();
      // The mapping Method
View Full Code Here

Examples of com.squareup.javawriter.JavaWriter.beginType()

        ImmutableMap.of("value", "\"" + AutoFactoryProcessor.class.getName() + "\""));
    EnumSet<Modifier> modifiers = EnumSet.of(FINAL);
    if (descriptor.publicType()) {
      modifiers.add(PUBLIC);
    }
    writer.beginType(factoryName, "class", modifiers,
        Object.class.getName().equals(descriptor.extendingType())
            ? null : descriptor.extendingType(),
        implementedClasses);

    ImmutableList.Builder<String> constructorTokens = ImmutableList.builder();
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.