Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #30984
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Jeff Higgins <jeff@invalid.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: super object reference |
| Date | Sun, 01 Feb 2015 09:23:04 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 22 |
| Message-ID | <mald21$43j$1@dont-email.me> (permalink) |
| References | <maj5b2$1fos$1@ariadne.rz.tu-clausthal.de> <mcmurtrie-08783E.22470031012015@news.sonic.net> <mal3bb$20i5$1@ariadne.rz.tu-clausthal.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sun, 1 Feb 2015 14:26:10 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="c50a9e5d554cfaba13eda1c71e805135"; logging-data="4211"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PmEIHhrg34boJ1Fmg35UpwJZoKYwE29A=" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 |
| In-Reply-To | <mal3bb$20i5$1@ariadne.rz.tu-clausthal.de> |
| Cancel-Lock | sha1:gIURNp4ksgAKwmq86ekGyYha0oA= |
| Xref | csiph.com comp.lang.java.programmer:30984 |
Show key headers only | View raw
On 02/01/2015 06:40 AM, Philipp Kraus wrote: > > I see this is a conceptional design error at my code. I use my variable x > within a deeper framewok call and this call runs > x.getclass.getDecalredFields(), but > this returns in the example case nothing, ebcause my child class does > not have any fields. > > I have got only the x reference but I need all fields of the object, > also the fields of the child & parent > class and fields of the parent-parent class... I would like to create a > field list from my object x over all > fields that are exists within the objects. IMHO I must run from my > object class up to the java.object and collect all fields. > How can I do this? > <https://github.com/ronmamo/reflections> ReflectionUtils.getAllFields(...) get all fields of given type, up the super class hierarchy, optionally filtered by predicates
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
super object reference Philipp Kraus <philipp.kraus@flashpixx.de> - 2015-01-31 19:02 +0100
Re: super object reference Jeff Higgins <jeff@invalid.invalid> - 2015-01-31 13:14 -0500
Re: super object reference Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2015-01-31 22:47 -0800
Re: super object reference Philipp Kraus <philipp.kraus@flashpixx.de> - 2015-02-01 12:40 +0100
Re: super object reference Arne Vajhøj <arne@vajhoej.dk> - 2015-02-01 09:13 -0500
Re: super object reference Arne Vajhøj <arne@vajhoej.dk> - 2015-02-01 09:21 -0500
Re: super object reference Philipp Kraus <philipp.kraus@flashpixx.de> - 2015-02-01 23:44 +0100
Re: super object reference Jeff Higgins <jeff@invalid.invalid> - 2015-02-01 09:23 -0500
Re: super object reference Arne Vajhøj <arne@vajhoej.dk> - 2015-02-01 09:30 -0500
Re: super object reference Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2015-02-02 19:46 -0800
Re: super object reference Roedy Green <see_website@mindprod.com.invalid> - 2015-02-05 04:37 -0800
csiph-web