title: Instrument intermediary local method call within a method body
body: <p>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:</p>
  
  <ol>
  <li>to get the type of such a variable (or a way to convert from the signature)</li>
  <li>to know (distinguish) when this variable is used (either sees it value affected, or is passed as parameter) </li>
  <li>when this variable is used as parameter, to know which method call it was passed to</li>
  <li>to break "method-chains" in their respective method calls and get their return value so I can manipulate them</li>
  </ol>
  
  <p>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...).</p>
  
  <p>Any pointer appreciated.
  If more information need, feel free to ask.</p>