if (monitor.isCanceled()) {
System.out.println("mumu");
monitor.done();
return IterableExtensions.join(data, "\n");
}
IEvaluationResult result = xbaseInterpreter.evaluate(x, context, CancelIndicator.NullImpl);
data.add(serializer.serialize(x).trim());
if (result.getException() != null) {
data.add("// Exception: " + result.getException().getMessage());
result.getException().printStackTrace();
return IterableExtensions.join(data, "\n");
} else {
if (result.getResult() == null) {
data.add("// null");
} else {
data.add("//" + result.getResult().getClass().getSimpleName() + ": " + result.getResult().toString());
}
}
monitor.worked(1);
}