-1

I'm analyzing the bytecode of a class. I can detect the opcode and the operands of it. How can I get the the name of this (the name of the object)

For istance the opcode is new and i have as operand an integer (think a the follow code: "new String()") Where I should serch for the name? In the constantPool of the class and how? I'm not expert

orsvon
  • 11
  • 3

1 Answers1

0

ASM is the best choice. It is fast and has simple API and detailed User Guide. The framework completely abstracts you from dealing with constant pool and other class format structures.

Eugene Kuleshov
  • 31,461
  • 5
  • 66
  • 67