svoid dm_javaEvalModule_doIt(S s) { DynModule dm = dm_current_mandatory(); //set transpileRaw_verySilent; print("\nEvaluating: " + s); logQuoted(programFile("expressions.txt"), s); dm.setField(expression := s); try { S toEvaluate = s; // "time(func { " + s + "})"; //O value = javaEval_dependent(toEvaluate); O value = dm_javaEval(toEvaluate); dm.setFields(+value, error := null); print(); new L info; info.add(evalJava_myProgramID_main_time! + " ms"); if (value instanceof Collection || value instanceof Map) info.add("l=" + l(value)); else if (value cast S) info.add("l=" + l(value) + ", lines=" + countLines(value)); print("[" + joinWithComma(info) + "]"); S string = str(value); pcall { logStructure(programFile("with-results.txt"), ll(s, string)); } print(shorten(1000, string)); } catch e { dm.setFields(value := null, error := e); printStackTrace2(e); } }