Package org.eclipse.xtext.xbase.compiler.output

Examples of org.eclipse.xtext.xbase.compiler.output.ITreeAppendable.newLine()


          public void apply(final ITreeAppendable it) {
            it.append("return new ");
            JvmTypeReference _jvmType = JexTestJvmModelInferrer.this._util.jvmType(instance);
            JexTestJvmModelInferrer.this._typeReferenceSerializer.serialize(_jvmType, instance, it);
            ITreeAppendable _append = it.append("();");
            _append.newLine();
          }
        };
        this._jvmTypesBuilder.setBody(method, _function_1);
      } else {
        if (this.checkDiagnosticInCompiler) {
View Full Code Here


                JexTestJvmModelInferrer.this._xbaseCompiler.toJavaExpression(_expr_2, it);
                it.append("return ");
                XExpression _expr_3 = instance.getExpr();
                JexTestJvmModelInferrer.this._xbaseCompiler.toJavaExpression(_expr_3, it);
                ITreeAppendable _append = it.append(";");
                _append.newLine();
              }
            }
          };
          this._jvmTypesBuilder.setBody(method, _function_2);
        }
View Full Code Here

        _builder.append(" = _init_");
        String _name_1 = instance.getName();
        _builder.append(_name_1, "");
        _builder.append("();");
        ITreeAppendable _append = appendable.append(_builder);
        _append.newLine();
      }
    }
    return _xifexpression;
  }
 
View Full Code Here

  protected void _generateTransitionActionsEffect(final TransitionExceptionEffect effect, final Transition transition, final ITreeAppendable appendable) {
    TransitionEffect _effect = transition.getEffect();
    if ((_effect instanceof TransitionExceptionEffect)) {
      ITreeAppendable _append = appendable.append("try {");
      ITreeAppendable _increaseIndentation = _append.increaseIndentation();
      _increaseIndentation.newLine();
    }
    this._generateTransitionActionsEffect(((TransitionEffect) effect), transition, appendable);
    TransitionEffect _effect_1 = transition.getEffect();
    if ((_effect_1 instanceof TransitionExceptionEffect)) {
      TransitionEffect _effect_2 = transition.getEffect();
View Full Code Here

      _builder_2.append("catch (Exception ");
      _builder_2.append(exceptionVar, " ");
      _builder_2.append(") {");
      ITreeAppendable _append_1 = appendable.append(_builder_2);
      ITreeAppendable _increaseIndentation_1 = _append_1.increaseIndentation();
      _increaseIndentation_1.newLine();
      StringConcatenation _builder_3 = new StringConcatenation();
      _builder_3.append("assertTrue(\"");
      String _quote_1 = this._util.quote(message, "\"");
      _builder_3.append(_quote_1, "");
      _builder_3.append("\", ");
View Full Code Here

      _builder_3.append(");");
      appendable.append(_builder_3);
      ITreeAppendable _decreaseIndentation_1 = appendable.decreaseIndentation();
      ITreeAppendable _newLine_1 = _decreaseIndentation_1.newLine();
      ITreeAppendable _append_2 = _newLine_1.append("}");
      _append_2.newLine();
    }
  }
 
  protected void _generateTransitionActionsEffect(final TransitionTargetEffect effect, final Transition transition, final ITreeAppendable appendable) {
    this._generateTransitionActionsEffect(((TransitionEffect) effect), transition, appendable);
View Full Code Here

      _builder_1.append(" > 0; ");
      _builder_1.append(timesVar, "");
      _builder_1.append("--) {");
      ITreeAppendable _append = appendable.append(_builder_1);
      ITreeAppendable _increaseIndentation = _append.increaseIndentation();
      _increaseIndentation.newLine();
    }
    this.generateTestHelperMethodCall("_transition_exprAction_", action, appendable, true, false);
    boolean _notEquals_2 = (!Objects.equal(timesVar, null));
    if (_notEquals_2) {
      ITreeAppendable _decreaseIndentation = appendable.decreaseIndentation();
View Full Code Here

    }
    try {
      if (isVoid) {
        ITreeAppendable _append = appendable.append("try {");
        ITreeAppendable _increaseIndentation = _append.increaseIndentation();
        _increaseIndentation.newLine();
      }
      for (final XExpression subExpr : exprs) {
        boolean _or_2 = false;
        boolean _notEquals = (!Objects.equal(subExpr, expr));
        if (_notEquals) {
View Full Code Here

        StringConcatenation _builder_1 = new StringConcatenation();
        _builder_1.append("} catch (junit.framework.AssertionFailedError ");
        _builder_1.append(errorVar, "");
        _builder_1.append(") {");
        ITreeAppendable _append_1 = appendable.append(_builder_1);
        _append_1.newLine();
        StringConcatenation _builder_2 = new StringConcatenation();
        _builder_2.append("fail(\"");
        String _quote = this._util.quote(message, "\"");
        _builder_2.append(_quote, "");
        _builder_2.append(": \" + ");
View Full Code Here

        _builder_2.append(": \" + ");
        _builder_2.append(errorVar, "");
        _builder_2.append(".getMessage());");
        ITreeAppendable _append_2 = appendable.append(_builder_2);
        ITreeAppendable _decreaseIndentation = _append_2.decreaseIndentation();
        _decreaseIndentation.newLine();
        ITreeAppendable _append_3 = appendable.append("}");
        _append_3.newLine();
      } else {
        boolean _notEquals_2 = (!Objects.equal(assertMethodName, null));
        if (_notEquals_2) {
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.