🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

method.getParameterTypes()

#7188
From: �mit �air
Date: Tue, 10 Jul 2001 13:34
17 lines
1457 bytes
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: <3b4b0474_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1a80bcb407d97997,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-07-10 06:37:12 PST
From: "�mit �air" <umit.sair@o2.com.tr>
Newsgroups: borland.public.jbuilder.java.language
Subject: method.getParameterTypes()
Date: Tue, 10 Jul 2001 16:34:46 +0300
Lines: 21
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: 217.31.230.158
Message-ID: <3b4b0474_2@dnews>
X-Trace: dnews 994772084 217.31.230.158 (10 Jul 2001 06:34:44 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews