Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: access leve...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 11 Topic 15966 of 16566
Post > Topic >>

Re: access levels for private field which is inherited

by Mark Space <markspace@[EMAIL PROTECTED] > Apr 15, 2008 at 05:09 PM

Larry A Barowski wrote:
> "Mark Space" <markspace@[EMAIL PROTECTED]
> wrote in message 
> news:3FqMj.268$26.207@[EMAIL PROTECTED]
>> Even with reflection, is it possible?  I was just playing around with 
>> reflection and I noticed that the API only promises to return public 
>> methods and fields.  Maybe there's a sneaky "getAll" that I missed...
> 
> Class.getDeclaredField(String) 
> 
> 

Thanks btw, I've seen people mention this before.  Since getFields 
returns an array of public fields, I assume one has to guess or just 
know the name of the private field.  (Note I could try it myself to find 
the answer, I just haven't yet...)
 




 11 Posts in Topic:
access levels for private field which is inherited
thufir <hawat.thufir@[  2008-04-13 10:01:29 
Re: access levels for private field which is inherited
Lothar Kimmeringer <ne  2008-04-13 12:38:52 
Re: access levels for private field which is inherited
Lew <lew@[EMAIL PROTEC  2008-04-13 07:41:05 
Re: access levels for private field which is inherited
Mark Space <markspace@  2008-04-13 09:37:03 
Re: access levels for private field which is inherited
"Larry A Barowski&qu  2008-04-13 17:16:24 
Re: access levels for private field which is inherited
Mark Space <markspace@  2008-04-15 17:09:33 
Re: access levels for private field which is inherited
Roedy Green <see_websi  2008-04-14 21:12:11 
Re: access levels for private field which is inherited
Roedy Green <see_websi  2008-04-14 20:56:51 
Re: access levels for private field which is inherited
thufir <hawat.thufir@[  2008-04-15 10:21:27 
Re: access levels for private field which is inherited
thufir <hawat.thufir@[  2008-04-15 23:06:17 
Re: access levels for private field which is inherited
Chase Preuninger <chas  2008-04-15 16:46:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:11:22 CST 2008.