Esempio n. 1
0
 /**
  * @param controlFlow the control flow construct and its code, such as "else if (foo == 10)".
  *     Shouldn't contain braces or newline characters.
  */
 public Builder nextControlFlow(String controlFlow, Object... args) {
   unindent();
   add("} " + controlFlow + " {\n", args);
   indent();
   return this;
 }
Esempio n. 2
0
 /**
  * @param controlFlow the control flow construct and its code, such as "if (foo == 5)".
  *     Shouldn't contain braces or newline characters.
  */
 public Builder beginControlFlow(String controlFlow, Object... args) {
   add(controlFlow + " {\n", args);
   indent();
   return this;
 }