Programmatically inspect .class files

后端 未结 6 2040
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-31 07:30

I\'m working on a project where we\'re doing a lot of remote object transfer between a Java service and clients written in other various languages. Given our current constra

6条回答
  •  北海茫月
    2020-12-31 08:11

    From your description, it sounds like simple reflection would suffice. You can discover all of the static structure of the class, as well as accessing the fields of a particular instance.

    I would only move on to BCEL if you are trying to translate method instructions. (And if that's what you're trying to automate, good luck!)

提交回复
热议问题