Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #30984

Re: super object reference

From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: super object reference
Date 2015-02-01 09:23 -0500
Organization A noiseless patient Spider
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>

Show all headers | 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


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