title: Using the Eclipse AST
body: <p>I have recently come into the need of modifying some Java code (adding methods, changing the signatures of some fields and removing methods) and I think that all of this can be accomplished though the use of the Eclipse SDK's AST.</p>
  
  <p>I know from some research how to parse in a source file but I don't know how to do the things mentioned above. Does anyone know a good tutorial or could someone give me a brief explanation on how to resolve these issues?</p>
  
  <p>Thanks a lot,</p>
  
  <p>ExtremeCoder</p>
  
  <hr>
  
  <p><strong>Edit:</strong></p>
  
  <p>I have now started to look more into the JCodeModel and I think this could be much easier to use but I do not know if an exististing document can be loaded into it?</p>
  
  <p>If this could work let me know ;)</p>
  
  <p>Thanks again.</p>