将Java对象序列化为Java代码?

有没有将 Java对象序列化为 Java代码的实现?例如,如果我有对象 MapString,Integer m = new MapString,Integer();m.put(foo,new Integer(21)); 我可以序列化这个使用 ObjectOutputStream out = new ObjectOutputStream( … );out.writeObject(

返回顶部