Results 1 to 3 of 3
  1. #1
    RobertVox1977 is offline Member
    Join Date
    Sep 2013
    Rep Power

    Default Modify java source code programmatically


    I would have question.

    Could you please tell me?

    How can I modify java code file by Java program for instance to add annotations i new generated sourcecode. Is there any library which supports so operations?

    Please help!

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power

    Default Re: Modify java source code programmatically

    Java can input and output text just fine using standard io. What have you tried?
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  3. #3
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Tucson, AZ
    Rep Power

    Default Re: Modify java source code programmatically

    Check out Codemodel. I've used it, though not for annotations. A quick look at the Javadoc suggests that it can generate them.
    Get in the habit of using standard Java naming conventions!

Similar Threads

  1. Modify JNDI java.util.Properties in code
    By RRB in forum Java Servlet
    Replies: 3
    Last Post: 09-09-2012, 09:57 AM
  2. Where to put this source code ? *.java or *.jsp
    By Tores in forum New To Java
    Replies: 1
    Last Post: 02-22-2012, 03:55 PM
  3. Replies: 16
    Last Post: 01-31-2012, 09:36 PM
  4. Can we Obtain Java Source Code?
    By tornado in forum New To Java
    Replies: 7
    Last Post: 12-10-2008, 08:23 PM
  5. Replies: 1
    Last Post: 11-28-2008, 07:27 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts