}
}
}
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) {
_or_2 = true;
} else {
boolean _not_2 = (!isVoid);
_or_2 = (_notEquals || _not_2);
}
this._xbaseCompiler.toJavaStatement(subExpr, appendable, _or_2);
}
appendable.newLine();
StringConcatenation _builder = new StringConcatenation();
String _asSourceText = this._util.asSourceText(expr);
_builder.append(_asSourceText, "");
_builder.append(" failed");
String message = _builder.toString();
boolean _not_3 = (!(owner instanceof TransitionAction));
if (_not_3) {
final Transition transition = this._util.<Transition>ancestor(expr, Transition.class);
boolean _and_3 = false;
boolean _notEquals_1 = (!Objects.equal(transition, null));
if (!_notEquals_1) {
_and_3 = false;
} else {
EList<TransitionAction> _actions = transition.getActions();
boolean _isEmpty = _actions.isEmpty();
boolean _not_4 = (!_isEmpty);
_and_3 = (_notEquals_1 && _not_4);
}
if (_and_3) {
String _plus = (message + " after ");
EList<TransitionAction> _actions_1 = transition.getActions();
String _asSourceText_1 = this._util.asSourceText(_actions_1, " ,");
String _plus_1 = (_plus + _asSourceText_1);
message = _plus_1;
}
}
if (isVoid) {
final String errorVar = appendable.declareSyntheticVariable(owner, "error");
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(": \" + ");
_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) {
StringConcatenation _builder_3 = new StringConcatenation();
_builder_3.append(assertMethodName, "");
_builder_3.append("(\"");
String _quote_1 = this._util.quote(message, "\"");
_builder_3.append(_quote_1, "");
_builder_3.append("\"");
appendable.append(_builder_3);
for (final XExpression subExpr_1 : exprs) {
{
appendable.append(", ");
this._xbaseCompiler.toJavaExpression(subExpr_1, appendable);
}
}
ITreeAppendable _append_4 = appendable.append(");");
_append_4.newLine();
}
}
} catch (final Throwable _t) {
if (_t instanceof RuntimeException) {
final RuntimeException re = (RuntimeException)_t;