private void createRendering() {
    StringBuilder builder = new StringBuilder();

    if (getExpression() != null) {
      ExpressionInfoValueRenderer.render(expression);
      builder.append(ExpressionInfoRenderer.render(expression));
    } else if (text != null) {
      builder.append(stripAndFlatten(text));
      builder.append("\n");
    } else {
      builder.append("(Source code not available)\n");
    }

    if (message != null) {
      builder.append("\n");
      builder.append(message);
      builder.append("\n");
    }

    rendering = builder.toString();
  }
Runtime representation of an evaluated condition.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/runtime/Condition.java