Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Storing ASTNodes within a DB
Storing ASTNodes within a DB [message #757069] Wed, 16 November 2011 11:06 Go to next message
Andreas Kaluza is currently offline Andreas KaluzaFriend
Messages: 10
Registered: December 2010
Junior Member
Hi,

I am wondering if it is possible to serialize a ASTNode, like a MethodDeclaration or Statement, into e.g. a flat file. Due to performance issues I do not like to parse the same compilation units (big number) every time my plug-in is executed.

Has anyone an idea how to realizes this?

Greetings

Andreas
Re: Storing ASTNodes within a DB [message #757075 is a reply to message #757069] Wed, 16 November 2011 11:47 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
The ASTNode(s) refer to lot of internal data. Hence, it will not be possible
Is there a reason that you need to parse the same compilation units every time?
Re: Storing ASTNodes within a DB [message #757851 is a reply to message #757075] Wed, 16 November 2011 13:51 Go to previous message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
Don't think this has been tried before :-)

What kind of information are you looking from the AST? I think the
structural info may be still be useful after the serialization -
deserialization process. However, the 'bindings' are likely to be
useless after serialization.

If you don't need the bindings you can also use
ASTParser#setResolvedBindings(false) to improve the performance a bit.

--
Deepak Azad
http://wiki.eclipse.org/JDT/FAQ
Previous Topic:Debugging over web
Next Topic:SOS:Latest Eclipse can not use Jadclpse
Goto Forum:
  


Current Time: Sat Apr 20 02:55:38 GMT 2024

Powered by FUDForum. Page generated in 0.04456 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top