c2nes / javalang

Pure Python Java parser and tools
MIT License
737 stars 161 forks source link

replace method with another #59

Open naevtamarkus opened 5 years ago

naevtamarkus commented 5 years ago

Hi, I would like to take two java files A and B and replace a method in file A with the code of the same method in file B... and then write the result in file C. I have the impression I am able to get the trees with your library, but... how do I do the rest? Or even, can I? BTW I think your library lacks some examples on how to find a method within a tree, how to access its code, and how to print it back to the screen or to a file. It looks very promising! Thanks!