• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Platform/Tool for code manipulation

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
As a part of my thesis work, I need to be able to:
1. Copy data fields from one class to another.
2. Copy methods from one class to another.
3. Rename method references.

and etc.

What platform currently gives me the best ability/tools to do that?

What is the way you'd recommend building such a tool?

Regards,
Tomer G.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use Eclipse. It has refactoring tools that will update dependent classes if you change a class' members, methods, names and so on.
We have an IDE Fourm here. Browse and search the posts there and you can get an idea as to what else is available.
 
Tomer Gal
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Joe,
I know eclipse and it's manual refactoring capabilities,
How can I automate it?

I am developing a sort of pre-compiler for java source code,
So I need my application to modify an existing source code.

Let's say I want to use the eclipse capabilities for doing so,
How can I activate those capabilities using programming, what is the API?

Until I get a reply I will go and read the forum you've recommended
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomer G., please check your private messages. You can see them by clicking My Private Messages.

Eclipse is open source, if you're interested in how refactoring works in Eclipse you could have a look at the source code. It will probably not be easy though...
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tomer G.:
Hi Joe,
I know eclipse and it's manual refactoring capabilities,
How can I automate it?



I have no idea. Eclipse is open-source and has a large developer and user community. You could download the code and search their forums and mailing lists and see if there are any automation facilities you could take advantage of.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic