如果您只想查看字节码:
javap -c -p -v classfile ^disassemble ^private methods ^verbose, including constant pool and bootstrap methods attribute
但是,如果您想尝试在运行时执行此操作,则很不走运(根据设计,我们没有像expression Trees这样的东西),如另一个答案所示。

如果您只想查看字节码:
javap -c -p -v classfile ^disassemble ^private methods ^verbose, including constant pool and bootstrap methods attribute
但是,如果您想尝试在运行时执行此操作,则很不走运(根据设计,我们没有像expression Trees这样的东西),如另一个答案所示。