Data::Dumper for Java?

From: Sam (nnospamm_at_fronti.org)
Date: 11/30/04


Date: Tue, 30 Nov 2004 15:05:41 GMT

Hello,

if I have something like

whatever_class inst = new whatever_class();
inst.member_1 = value_1;
..
inst.member_n = value_n;

is there any possibility to find out (without explizit asking) what the
types and/or values from inst ?

I have to say that I'm new to JAVA and I was wondering if there is something
similar that I know from Perl with the module Data::Dumper.

e.g. in Perl:
Data::Dumper($inst) would result in something like that
{ member_1 => value_1,
....
  member_n => value_n
}

I doubt that there is something similar available (or even possible) but I
just wanted to ask.

Thanks,
Sam