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

    Default Modify java source code programmatically

    Hallo,

    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
    Location
    Washington, DC
    Posts
    3,691
    Rep Power
    8

    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 - Play indie games, learn from game tutorials and source code, upload your own games!

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

    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, 08: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, 02:55 PM
  3. Replies: 16
    Last Post: 01-31-2012, 08:36 PM
  4. Can we Obtain Java Source Code?
    By tornado in forum New To Java
    Replies: 7
    Last Post: 12-10-2008, 07:23 PM
  5. Replies: 1
    Last Post: 11-28-2008, 06: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
  •