import java.util.*;
import java.util.zip.*;
import java.util.List;
import java.util.regex.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.*;
import java.util.concurrent.locks.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.table.*;
import java.io.*;
import java.net.*;
import java.lang.reflect.*;
import java.lang.ref.*;
import java.lang.management.*;
import java.security.*;
import java.security.spec.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import javax.imageio.*;
import java.math.*;
class main {
static class test_structure_nonTransientPersistenceInfoInFieldValues_Blubb extends DynamicObject {
String a = "aa", b = "bb";
}
static void test_structure_nonTransientPersistenceInfoInFieldValues() {
assertEqualsVerbose("test_structure_nonTransientPersistenceInfoInFieldValues_Blubb(b=\"bb\", _persistenceInfo=hm{\"a\"=f})", structure(nuDyn(test_structure_nonTransientPersistenceInfoInFieldValues_Blubb.class, "_persistenceInfo" , litmap("a", false))));
assertEqualsVerbose("test_structure_nonTransientPersistenceInfoInFieldValues_Blubb(a=\"aa\", b=\"bb\")", structure(nuDyn(test_structure_nonTransientPersistenceInfoInFieldValues_Blubb.class, "_persistenceInfo" , null)));
assertEqualsVerbose("test_structure_nonTransientPersistenceInfoInFieldValues_Blubb(a=\"aa\", b=\"bb\", _persistenceInfo=hm{\"a\"=t})", structure(nuDyn(test_structure_nonTransientPersistenceInfoInFieldValues_Blubb.class, "_persistenceInfo" , litmap("a", true))));
}
static A assertEqualsVerbose(Object x, A y) {
assertEqualsVerbose((String) null, x, y);
return y;
}
// x = expected, y = actual
static A assertEqualsVerbose(String msg, Object x, A y) {
if (!eq(x, y)) {
throw fail((msg != null ? msg + ": " : "") + "expected: "+ x + ", got: " + y);
} else
print("OK" + (empty(msg) ? "" : " " + msg) + ": " + /*sfu*/(x));
return y;
}
static boolean structure_showTiming, structure_checkTokenCount;
static String structure(Object o) {
return structure(o, new structure_Data());
}
static String structure(Object o, structure_Data d) {
StringWriter sw = new StringWriter();
d.out = new PrintWriter(sw);
structure_go(o, d);
String s = str(sw);
if (structure_checkTokenCount) {
print("token count=" + d.n);
assertEquals("token count", l(javaTokC(s)), d.n);
}
return s;
}
static void structure_go(Object o, structure_Data d) {
structure_1(o, d);
while (nempty(d.stack))
popLast(d.stack).run();
}
static void structureToPrintWriter(Object o, PrintWriter out) { structureToPrintWriter(o, out, new structure_Data()); }
static void structureToPrintWriter(Object o, PrintWriter out, structure_Data d) {
d.out = out;
structure_go(o, d);
}
// leave to false, unless unstructure() breaks
static boolean structure_allowShortening = false;
// info on how to serialize objects of a certain class
static class structure_ClassInfo {
Class c;
List fields;
Method customSerializer;
IVF1