Data::Dumper for Java?
From: Sam (nnospamm_at_fronti.org)
Date: 11/30/04
- Next message: brandon_at_hotmall.com: "Re: please recommend a design pattern book in java"
- Previous message: Collin VanDyck: "Help with lexical events and a TransformerHandler"
- Next in thread: Andrew Thompson: "Re: Data::Dumper for Java?"
- Reply: Andrew Thompson: "Re: Data::Dumper for Java?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: brandon_at_hotmall.com: "Re: please recommend a design pattern book in java"
- Previous message: Collin VanDyck: "Help with lexical events and a TransformerHandler"
- Next in thread: Andrew Thompson: "Re: Data::Dumper for Java?"
- Reply: Andrew Thompson: "Re: Data::Dumper for Java?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]