processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java
public JavaWriter emitField(String type, String name, Set<Modifier> modifiers,
      String initialValue) throws IOException {
    indent();
    emitModifiers(modifiers);
    emitCompressedType(type);
    out.write(" ");
    out.write(name);

    if (initialValue != null) {
      out.write(" =");
      if (!initialValue.startsWith("\n")) {
        out.write(" ");
      }

      String[] lines = initialValue.split("\n", -1);
      out.write(lines[0]);
      for (int i = 1; i < lines.length; i++) {
        out.write("\n");
        hangingIndent();
        out.write(lines[i]);
      }
    }
    out.write(";\n");
    return this;
  }
public JavaWriter emitField(String type, String name, Set<Modifier> modifiers,
      String initialValue) throws IOException {
    indent();
    emitModifiers(modifiers);
    emitCompressedType(type);
    out.write(" ");
    out.write(name);

    if (initialValue != null) {
      out.write(" =");
      if (!initialValue.startsWith("\n")) {
        out.write(" ");
      }

      String[] lines = initialValue.split("\n", -1);
      out.write(lines[0]);
      for (int i = 1; i < lines.length; i++) {
        out.write("\n");
        hangingIndent();
        out.write(lines[i]);
      }
    }
    out.write(";\n");
    return this;
  }
public JavaWriter emitField ( String type , String name , Set < Modifier > modifiers , String initialValue ) throws IOException { indent ( ) ; emitModifiers ( modifiers ) ; emitCompressedType ( type ) ; out . write ( " " ) ; out . write ( name ) ; if ( initialValue != null ) { out . write ( " =" ) ; if ( ! initialValue . startsWith ( "\n" ) ) { out . write ( " " ) ; } String [ ] lines = initialValue . split ( "\n" , - 1 ) ; out . write ( lines [ 0 ] ) ; for ( int i = 1 ; i < lines . length ; i ++ ) { out . write ( "\n" ) ; hangingIndent ( ) ; out . write ( lines [ i ] ) ; } } out . write ( ";\n" ) ; return this ; }
Emits a field declaration.
Emits a field declaration .