I know (at least using either BCEL, or ASM, for instance), it is possible to somehow access local variables of a method... but, I need something more, what I would like is:
- to get the type of such a variable (or a way to convert from the signature)
- to know (distinguish) when this variable is used (either sees it value affected, or is passed as parameter)
- when this variable is used as parameter, to know which method call it was passed to
- to break "method-chains" in their respective method calls and get their return value so I can manipulate them
The basic idea is that I would like to "instrument" methods a bit in the same way a debugger does (though limited to the first frame depth...).
Any pointer appreciated. If more information need, feel free to ask.