It's impossible.
Javassist is not a decompiler. The method in the class file is represented in Java bytecode. Javassist knows how to translate Java source code into byte code, but not vice versa. In addition, Java bytecode may not even be expressed as Java source code, for example when written in Java Java.
source share