Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » parsing function calls
parsing function calls [message #731270] Fri, 30 September 2011 09:32 Go to next message
Eclipse UserFriend
Hello JDT Community,
I am trying to parse function calls within java project using ASTParser available in jdt package.
I am looking directions to parse following function calls like the following


panel.buttons.elementAt(4).setPObject(new And());
according to my parser I get visit(ClassInstanceCreation node) {...} called for inner function call for "new And()". However what I also want is that there is a function call made to *.SetPObject(..); as well by using panel instance. Same goes for the following function.
Can somebody help me resolve the function call made to setPObject(..) function? How can I proceed with it?

Many thanks Razz
Saad


Re: parsing function calls [message #731802 is a reply to message #731270] Mon, 03 October 2011 02:48 Go to previous message
Eclipse UserFriend
You might have to use visit(MethodInvocation). Whenever, you are working with AST, using ASTView from http://www.eclipse.org/jdt/ui/astview/index.php could help you.
Previous Topic:organize imports and inner types
Next Topic:Bindings order?
Goto Forum:
  


Current Time: Mon Jul 07 08:28:14 EDT 2025

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

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

Back to the top