I'd like to create a java code parser to statically get the objects used as method parameters in a test suite.
Do you have any suggestion on how can I do that?
I'd like to create a java code parser to statically get the objects used as method parameters in a test suite. Do you have any suggestion on how can I do that? |
|||||||||||||||||||||
|
It sounds like you want to trace all the arguments passed to a method. The simplest way is to add code to the method to record this. If you cannot change the code you can use an Aspect library like AspectJ |
|||||||||||||||||||||
|