public void addLine(String line){
  if (isEmpty()) {
    empty=false;
  }
 else {
    statement.append("\n");
  }
  String lineSimplified=simplifyLine(line);
  applyStateChanges(lineSimplified);
  if (endWithOpenMultilineStringLiteral() || insideMultiLineComment) {
    statement.append(line);
    return;
  }
  delimiter=changeDelimiterIfNecessary(lineSimplified,delimiter);
  statement.append(line);
  if (isCommentDirective(lineSimplified)) {
    nonCommentStatementPartSeen=true;
  }
  if (!lineEndsWithSingleLineComment && lineTerminatesStatement(lineSimplified,delimiter)) {
    stripDelimiter(statement,delimiter);
    terminated=true;
  }
}

public void addLine ( String line ) { if ( isEmpty ( ) ) { empty = false ; } else { statement . append ( "\n" ) ; } String lineSimplified = simplifyLine ( line ) ; applyStateChanges ( lineSimplified ) ; if ( endWithOpenMultilineStringLiteral ( ) || insideMultiLineComment ) { statement . append ( line ) ; return ; } delimiter = changeDelimiterIfNecessary ( lineSimplified , delimiter ) ; statement . append ( line ) ; if ( isCommentDirective ( lineSimplified ) ) { nonCommentStatementPartSeen = true ; } if ( ! lineEndsWithSingleLineComment && lineTerminatesStatement ( lineSimplified , delimiter ) ) { stripDelimiter ( statement , delimiter ) ; terminated = true ; } }
adds this line to the current statement being built .
