| How can I save the AST generated code [message #17759] |
Thu, 08 May 2003 11:16  |
|
Originally posted by: wgyun.hotmail.com
Hi there,
I'm using AST to create java source from scratch, something like:
AST ast = new AST();
CompilationUnit unit = ast.newCompilationUnit();
PackageDeclaration packageDeclaration = ast.newPackageDeclaration
.....
But I don't know how to save this generated content, there seems no
relationship
between CompilationUnit and ICompilationUnit. Could anyone give me a hint?
I'd appreciate your help very much!
Thanks!
|
|
|
|
|
|
| Re: How can I save the AST generated code [message #17785 is a reply to message #17780] |
Thu, 08 May 2003 13:47   |
|
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com
> When I looked into the link you gave me, it mentions postponing the fix to
> 3.0, is this true?
well, 2.1 is out of the door, so i guess 3.0 is the earliest
a.
--
eclipse.org
|
|
|
|
| Re: How can I save the AST generated code [message #17794 is a reply to message #17787] |
Thu, 08 May 2003 15:51  |
|
Originally posted by: olivier_thomann.nospam.oti.com
On Thu, 8 May 2003 14:33:15 -0400, "Cindy Wen" <wgyun@hotmail.com>
wrote:
>Since I saw the resolution is using ASTFlattener, I'm just hesitating to use
>the internal api. Now I think I'll copy it to my code line.
>Thanks a lot!
Be careful that ASTFlattener is not preserving unicodes.
--
Olivier
|
|
|
Powered by
FUDForum. Page generated in 0.01668 seconds