Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » What does Fragments in an ASTNode mean?
What does Fragments in an ASTNode mean? [message #1233578] Mon, 20 January 2014 02:32 Go to next message
Wang Felix is currently offline Wang FelixFriend
Messages: 3
Registered: January 2014
Junior Member
when I use AST to analysis my source code I found that most ASTNodes have a method:
fragments();

I also googled out that a node may have more than one fragment.
but I cannot create a node which has more than one fragment...

So, what does Fragments in an ASTNode mean?
I what an example of code which contains a node has more than one fragmen..

Thank you, everybody
Re: What does Fragments in an ASTNode mean? [message #1234226 is a reply to message #1233578] Tue, 21 January 2014 13:49 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Quote:
most ASTNodes have a method: fragments();

Really? I see only four such classes.

Each of them has Javadoc, but still let me give you an example:
  final int i=10, j=12;

This is one variable declaration statement with two fragments.

HTH,
Stephan
Re: What does Fragments in an ASTNode mean? [message #1234456 is a reply to message #1234226] Wed, 22 January 2014 02:22 Go to previous message
Wang Felix is currently offline Wang FelixFriend
Messages: 3
Registered: January 2014
Junior Member
Thank you very much~ You really helped me a lot Razz

(Indeed, I made a mistake, "most ASTnodes have the "fragment" method" is wrong, thank you to point out)
Previous Topic:Why is Eclipse not finding references in linked JARs (without sources attached)
Next Topic:Eclipse: create Web Service Wizard giving error on Axis2 webservice
Goto Forum:
  


Current Time: Thu Apr 25 23:38:13 GMT 2024

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

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

Back to the top