Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading content of the java method  RSS feed

 
xsunil kumar
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In my application there are around 2000 java files. I want to read all java files and all methods written inside the each files and change the content of the method on some code criteria.

Manually doing this work will take lot of time. I want to write a program which reads all methods and i can change the method by applying some formula.

Please help me to write such type of utility program.


-Sunil
 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sunil,

Have you tried using the combination of a regular expression + find + replace in a text editor ? Writing a utility sounds like too much of work.

-- Srikkanth
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!