Hi, I wanted to run a java program and see the affected methods in an output file. I have tried with Jinsight, etc all gives the intermediate files for viewing it, i wanted to see in a text file output, so that i can chase the impacted methods in a program. Thanks
Dhamodharan Krishnan
Greenhorn
Joined: Nov 07, 2001
Posts: 23
posted
0
You can use FileWriter object. Using that you can FileWriter fw = new FileWriter("out.log"); fw.write()--> in all the methods. Then you will get at the end of running the program the output. If you want to use without putting these then sorry.
You can use AspectJ to do this. AspectJ "automatically" inserts code at compile time according to the rules you specify. You can specify a generic rule to have all methods output their names at runtime.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus