Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Finding types of arguments with MethodInvocation
Finding types of arguments with MethodInvocation [message #254533] Wed, 02 July 2008 12:41 Go to next message
Eclipse UserFriend
Hi all,

I have my ASTVisitor derived class and I'm visiting MethodInvocation
nodes, I'm trying to get the fully qualifed class name of the passed in
arguments , is this possible ?

Thanks!
Charlie
Re: Finding types of arguments with MethodInvocation [message #254622 is a reply to message #254533] Wed, 02 July 2008 13:41 Go to previous message
Eclipse UserFriend
Nevermind found it!

Iterating over node.arguments(), and using

argument.resolveTypeBinding().getQualifiedName()

where argument has been cast to Expression, gives exactly what I need.

Charlie
Previous Topic:Finding parameter types of a method
Next Topic:Debugging suddenly became very slow
Goto Forum:
  


Current Time: Thu Jul 17 22:06:54 EDT 2025

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

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

Back to the top