Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在分析一个类的字节码。我可以检测到操作码及其操作数。我怎样才能得到这个的名字(对象的名字)
例如,操作码是新的,我有一个整数作为操作数(想想下面的代码:“new String()”)我应该在哪里搜索名称?在constantPool的类又如何?我不是专家
ASM是最佳选择。它速度快,具有简单的 API 和详细的用户指南。该框架将您从处理常量池和其他类格式结构中完全抽象出来。