JBoss Community

Decompile

created by MK Song in Javassist - View the full discussion

Is Javassist's API able to support decompile a class file to the corresponding source file?

 

For example,

 

ClassPool pool = ClassPool.getDefault();
pool.insertClassPath(classpath);
CtClass cc = pool.get(classname);

/* Add or remove somethings */
cc.writeFile(classpath);

cc.writeSource(classpath); <---

Reply to this message by going to Community

Start a new discussion in Javassist at Community