List all the strings and ints in a class?

31 views
Skip to first unread message

darkflame

unread,
Oct 19, 2012, 3:58:40 PM10/19/12
to google-we...@googlegroups.com
I am looking to make a little debugging widget for my (rather complex) app. It would be helpfull if I could construct something that would look at a class and display all its data.
I can handle the GUI side of it easily enough..but Java wise I don't know where to start or if its even possible to navigate a arbitrary class in this way.

Ideally Id want to get a list of variable names and their values.
I assume Id need to compile as pretty or detailed for the variable names to even be there - thats fine.

Thanks for any pointers,
-Thomas

KevMo

unread,
Oct 19, 2012, 4:54:36 PM10/19/12
to google-we...@googlegroups.com
I've never used it, but you might give GWT Reflection a try.

Thomas Wrobel

unread,
Oct 20, 2012, 3:19:14 PM10/20/12
to google-we...@googlegroups.com
Thanks for the link, seems a bit overkill for what I need though.
I'll have a go at brewing my own.
I see methods like "get declared fields" which seems a good start.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/BexDoKsQIEAJ.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages