Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » parsing function calls
parsing function calls [message #731270] Fri, 30 September 2011 13:32 Go to next message
saadbin abid is currently offline saadbin abidFriend
Messages: 61
Registered: October 2009
Location: Ireland
Member
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 06:48 Go to previous message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
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: Thu Sep 19 09:39:32 GMT 2024

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

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

Back to the top