Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Finding the FQN of a parameter in the AST
Finding the FQN of a parameter in the AST [message #207478] Tue, 21 June 2005 08:54 Go to next message
Eclipse UserFriend
Originally posted by: sebjorns.stud.ntnu.no

Hi,

I want to extract the parameters from a method signature. I am using the
AST and a visitor. So far I could find out the short class name of all the
parameters, but I would like to have the full qualified name.

Is there a way of getting the full qualified name from the AST? Same holds
for other references in the AST - getting the short name of the type is
easy, but I don't know how to get the full qualified name.

Thanks in advance,
Sebjørn
Re: Finding the FQN of a parameter in the AST [message #207530 is a reply to message #207478] Tue, 21 June 2005 12:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier_thomann.NOca.ibm.comSPAM

Sebjørn a écrit :
> I want to extract the parameters from a method signature. I am using the
> AST and a visitor. So far I could find out the short class name of all
> the parameters, but I would like to have the full qualified name.
>
> Is there a way of getting the full qualified name from the AST? Same
> holds for other references in the AST - getting the short name of the
> type is easy, but I don't know how to get the full qualified name.
Do you have the bindings?
If yes, they hold the resolved information.
--
Olivier
Re: Finding the FQN of a parameter in the AST [message #207567 is a reply to message #207530] Wed, 22 June 2005 03:04 Go to previous message
Eclipse UserFriend
Originally posted by: sebjorns.stud.ntnu.no

Olivier Thomann wrote:

> Sebjørn a écrit :
>> I want to extract the parameters from a method signature. I am using the
>> AST and a visitor. So far I could find out the short class name of all
>> the parameters, but I would like to have the full qualified name.
>>
>> Is there a way of getting the full qualified name from the AST? Same
>> holds for other references in the AST - getting the short name of the
>> type is easy, but I don't know how to get the full qualified name.
> Do you have the bindings?
> If yes, they hold the resolved information.
> --
> Olivier

I had not requested bindings when I created the AST, but when I did the
bindings gave me the wanted information. Thank you for your response.
-Sebjørn
Previous Topic:Syncing Projects On 2 Computers
Next Topic:Find a parametered type
Goto Forum:
  


Current Time: Fri May 16 03:01:42 EDT 2025

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

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

Back to the top