Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » What does Fragments in an ASTNode mean?
What does Fragments in an ASTNode mean? [message #1233578] Sun, 19 January 2014 21:32 Go to next message
Eclipse UserFriend
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 08:49 Go to previous messageGo to next message
Eclipse UserFriend
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] Tue, 21 January 2014 21:22 Go to previous message
Eclipse UserFriend
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: Wed Apr 23 01:55:04 EDT 2025

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

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

Back to the top