Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: Interpreting toString() output of Class Objects
|
Posted: Aug 9, 2002 1:34 PM
|
|
> Is there some reference material as to how to > understand the parsed contents of a string > representation of a class?
No, because every class can override toString(), so there is no guarantee that it has any particular format or meaning. If you want to get specific information about objects, you should be using reflection, instead. For instance, look at the difference between someObject.toString(), someObject.getClass().toString() and someObject.getClass().getName().
|
|