Iterating over fields

69 views
Skip to first unread message

dkornishev

unread,
Jun 15, 2011, 9:14:17 AM6/15/11
to reflectasm-users
First off, great products. It is unusual to see java libraries that
are simple, intuitive to use and "just work" out of the box. So,
you've done a great job.

Actual question:

A common use-case for me is iterating over all fields in the class,
which doesn't seem possible with the current implementation of
Reflectasm.

I could get fields manually outside of the library use, of course, but
from the source it looks like you are doing it already.

It would be great if it were possible to iterate over all fields+their
values

Regards

Nate

unread,
Jun 15, 2011, 7:58:19 PM6/15/11
to reflecta...@googlegroups.com
Thanks for the kind words. :)

In SVN, I added getFields to FieldAccess and getMethods to MethodAccess. I didn't copy, these are the underlying arrays for the instance, so don't set elements to null. :)

-Nate



--
You received this message because you are subscribed to the "reflectasm-users" group.
http://groups.google.com/group/reflectasm-users

dkornishev

unread,
Jun 16, 2011, 2:38:02 PM6/16/11
to reflectasm-users
Great! Quick work too, great service :)

On Jun 15, 7:58 pm, Nate <nathan.sw...@gmail.com> wrote:
> Thanks for the kind words. :)
>
> In SVN, I added getFields to FieldAccess and getMethods to MethodAccess. I
> didn't copy, these are the underlying arrays for the instance, so don't set
> elements to null. :)
>
> -Nate
>
Reply all
Reply to author
Forward
0 new messages