Re: Possible to use reflection to get constructor params/args
- From: Hendrik Maryns <hendrik_maryns@xxxxxxxxxxxxx>
- Date: Wed, 28 Jun 2006 15:50:19 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Petterson Mikael schreef:
Hi,
Is it possible to use reflection to get the param/arg names i and d in
second constructor? ( I am using jdk 1.4).
cheers,
//mikael
public class Constructor1 {
public Constructor1()
{
}
protected Constructor1(int i, double d)
{
}
}
The names are absolutely meaningless, except in the inners of the
method, so there is absolutely no reason to want to get them. What do
you REALLY want?
H.
- --
Hendrik Maryns
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFEookbe+7xMGD3itQRAtcdAJ9Q6A8LgNjJEKlQ/yxgaQLoJQho/ACdF/N1
3QTlA9M1/kB+HXOiqwxsvCM=
=A+Kz
-----END PGP SIGNATURE-----
.
- References:
- Possible to use reflection to get constructor params/args
- From: Petterson Mikael
- Possible to use reflection to get constructor params/args
- Prev by Date: Possible to use reflection to get constructor params/args
- Next by Date: Re: array initilization and memory usage
- Previous by thread: Possible to use reflection to get constructor params/args
- Next by thread: Re: Possible to use reflection to get constructor params/args
- Index(es):