🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: method.getParameterTypes()

#7197
From: �mit �air
Date: Wed, 11 Jul 2001 05:31
40 lines
2172 bytes
I'm looking for a way that I dont have to parse the file. There are tons of
methods about the class,field and method objects, but not these. If it is an
interface the name of the parameteres are presented but i can't get it.

"Greg Hamer" <ghamer@troikanetworks.com> wrote in message
news:3b4b3e4f$1_2@dnews...
> 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: <3b4be4c8$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-peer-west.sprintlink.net!news.sprintlink.net!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3b4b0474_2@dnews> <3b4b3e4f$1_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 22:36:58 PST
From: "�mit �air" <umit.sair@o2.com.tr>
Newsgroups: borland.public.jbuilder.java.language
References: <3b4b0474_2@dnews> <3b4b3e4f$1_2@dnews>
Subject: Re: method.getParameterTypes()
Date: Wed, 11 Jul 2001 08:31:54 +0300
Lines: 42
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: <3b4be4c8$1_1@dnews>
X-Trace: dnews 994829512 217.31.230.158 (10 Jul 2001 22:31:52 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-peer-west.sprintlink.net!news.sprintlink.net!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews