是否可以查看类文件的字节码? [英] Is it possible to view bytecode of Class file?
本文介绍了是否可以查看类文件的字节码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
是否有java类文件/字节码编辑器来编辑指令?
Java源代码被编译成字节码,实际上是在类文件中。是否可以查看已编译类的字节码?
Java source code is compiled into bytecode, which is actually in the class file. Is it possible to view bytecode of a compiled class?
如果可能,是否可以编辑?
If it is possible, can it be edited?
是否有可用的eclipse插件?
Is there an eclipse plugin for that available?
推荐答案
是的。您可以使用JDK附带的 javap
命令来查看类的字节代码。例如:
Yes. You can use the javap
command that's included with the JDK to see the byte code of a class. For example:
有几个库和工具可以帮助您使用Java字节码,例如 ASM 和< a href =http://jasmin.sourceforge.net/ =noreferrer> Jasmin 。
There are several libraries and tools that help you to work with Java bytecode, for example ASM and Jasmin.
这篇关于是否可以查看类文件的字节码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文