JBoss Community

Interception of return statement with Javassist

created by Enric Tejedor in Javassist - View the full discussion

Hello,

Is there a way to intercept the return statement of a method body using the Javassist source-level API?

 

I'd like to know which object is returned by a method, and insert some code before the return statement that processes that object.

 

Thank you,

 

Enric

Reply to this message by going to Community

Start a new discussion in Javassist at Community