🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7192

Re: method.getParameterTypes()

#7192
From: Greg Hamer
Date: Tue, 10 Jul 2001 17:41
26 lines
1747 bytes
By looking at the source when it can find it.
If you use code insight on a class that you do not have source for, it just
makes up variable names p0,p1 etc.

"�mit �air" <umit.sair@o2.com.tr> wrote in message news:3b4b0474_2@dnews...
> Hi ,
> I'm trying to get parameters of a method.
> Field.getType().getDeclaredMethods()
> gives me the methods of a class
> But when I'm trying to get parameters of the class I can only get types of
> the parameter; not names.
>
>     Class[] clss = method.getParameterTypes();
>     clss[1].getName() gives me int
>
> but what i want is something like 'int SessionID' , i can get the type but
> can't find a way to get the name of it. I can't find a suitable method to
> get the names of the parameters but somehow JBuilder's Codeinsight is able
> to do this.
> Anybody knows how?
> Thanks.
> Umit Sair
>
>
>
>
Technical Details
Message-ID: <3b4b3e4f$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b4b0474_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,1a80bcb407d97997
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-07-10 10:42:15 PST
From: "Greg Hamer" <ghamer@troikanetworks.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3b4b0474_2@dnews>
Subject: Re: method.getParameterTypes()
Date: Tue, 10 Jul 2001 10:41:10 -0700
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 12.31.172.193
Message-ID: <3b4b3e4f$1_2@dnews>
X-Trace: dnews 994786895 12.31.172.193 (10 Jul 2001 10:41:35 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews