Package org.eclipse.xtend2.lib

Examples of org.eclipse.xtend2.lib.StringConcatenation.newLineIfNotEmpty()


  public String print() {
    StringConcatenation _builder = new StringConcatenation();
    long _timestamp = this.getTimestamp();
    _builder.append(_timestamp, "");
    _builder.append(" RESET");
    _builder.newLineIfNotEmpty();
    return _builder.toString();
  }
}
View Full Code Here


    StringConcatenation _builder = new StringConcatenation();
    long _timestamp = this.getTimestamp();
    _builder.append(_timestamp, "");
    _builder.append(" CRASH ");
    _builder.append(this.backend, "");
    _builder.newLineIfNotEmpty();
    return _builder.toString();
  }
}
View Full Code Here

    long _timestamp = this.getTimestamp();
    _builder.append(_timestamp, "");
    _builder.append(" STATUS ");
    String _string = this.status.toString();
    _builder.append(_string, "");
    _builder.newLineIfNotEmpty();
    return _builder.toString();
  }
}
View Full Code Here

      if (_notEquals) {
        _builder.append("\t\t");
        _builder.append("<p>");
        _builder.append(message, "\t\t");
        _builder.append("</p>");
        _builder.newLineIfNotEmpty();
      }
    }
    _builder.append("\t\t");
    _builder.append("<form name=\"guessTheNumber\" action=\"/guess\"><input name=\"theGuess\" type=\"text\" focus=\"true\"></action>");
    _builder.newLine();
View Full Code Here

            @Override
            protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) {
              _builder.append("_dbObject = new ");
              _builder.append(BasicDBObject.class, "");
              _builder.append("();");
              _builder.newLineIfNotEmpty();
              _builder.append("_dbObject.put(JAVA_CLASS_KEY, \"");
              String _identifier = inferredType.getIdentifier();
              _builder.append(_identifier, "");
              _builder.append("\");");
              _builder.newLineIfNotEmpty();
View Full Code Here

              _builder.newLineIfNotEmpty();
              _builder.append("_dbObject.put(JAVA_CLASS_KEY, \"");
              String _identifier = inferredType.getIdentifier();
              _builder.append(_identifier, "");
              _builder.append("\");");
              _builder.newLineIfNotEmpty();
            }
          };
          MongoBeansJvmModelInferrer.this._jvmTypesBuilder.setBody(it, _client);
        }
      };
View Full Code Here

        it.newLine();
        StringConcatenation _builder = new StringConcatenation();
        _builder.append("StringBuilder ");
        _builder.append(name, "");
        _builder.append(" = new StringBuilder();");
        _builder.newLineIfNotEmpty();
        it.append(_builder);
        EList<XExpression> _expressions = ((RichString)expr).getExpressions();
        for (final XExpression nestedExpression : _expressions) {
          {
            this.internalToJavaStatement(nestedExpression, it, true);
View Full Code Here

        it.newLine();
        StringConcatenation _builder = new StringConcatenation();
        _builder.append("StringBuilder ");
        _builder.append(name, "");
        _builder.append(" = new StringBuilder();");
        _builder.newLineIfNotEmpty();
        _builder.append("for (final ");
        it.append(_builder);
        boolean _notEquals = (!Objects.equal(paramType, null));
        if (_notEquals) {
          it.append(paramType);
View Full Code Here

                    _builder.append("Error during execution:");
                    _builder.newLine();
                    _builder.append("  ");
                    String _message = e.getMessage();
                    _builder.append(_message, "  ");
                    _builder.newLineIfNotEmpty();
                    _builder.append("See log for details");
                    MessageDialog.openError(_shell, "Error during Execution", _builder.toString());
                    TortoiseView.LOGGER.error("Error executing TortoiseScript", e);
                  } else {
                    throw Exceptions.sneakyThrow(_t);
View Full Code Here

      _builder.append("Build \'");
      Class<? extends BuildScript> _class = this.getClass();
      String _simpleName = _class.getSimpleName();
      _builder.append(_simpleName, "");
      _builder.append("\'");
      _builder.newLineIfNotEmpty();
      _builder.newLine();
      _builder.append("Tasks:");
      _builder.newLine();
      {
        Map<String, TaskDef> _tasks = this.getTasks();
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.