Data::Dumper for java
- From: horos11@xxxxxxxxx
- Date: Mon, 6 Apr 2009 11:37:26 -0700 (PDT)
Perl has a very nice class called Data::Dumper which recursively
prints out data structures and objects, such that if an object owns
other objects, those too are printed out in 'standardized' form (ie:
showing all public and private fields of those subobjects).
Is there an equivalent module in java?
I know you could make one using reflection; my question is *has*
someone made one, one that is tunable (ie: that can override objects'
toString() methods, shows only so many levels of output, etc. Being
able to override toString() for subobjects is very important because
Java so helpfully provides a somewhat meaningless toString() function
for Object)
Thanks much for any info,
Ed
.
- Follow-Ups:
- Re: Data::Dumper for java
- From: Roedy Green
- Re: Data::Dumper for java
- From: Tom Anderson
- Re: Data::Dumper for java
- From: Mark Space
- Re: Data::Dumper for java
- Prev by Date: Re: Using "synchronized" but still getting IllegalMonitorStateException
- Next by Date: Re: Data::Dumper for java
- Previous by thread: Using "synchronized" but still getting IllegalMonitorStateException
- Next by thread: Re: Data::Dumper for java
- Index(es):
Relevant Pages
|