org.knowceans.sandbox
Class ObjectPrinter
java.lang.Object
org.knowceans.sandbox.ObjectPrinter
public class ObjectPrinter
- extends java.lang.Object
Class to analyse serialised objects. Analyses all fields, trying to access private
fields. Also tries to evaluate all methods with a non-void return parameter and
no arguments. The results of the field and method evaluation are displayed, and
more complex classes displayed with their private and public fields. If the childclass
is a Collection descendent, the contained elements are displayed if non-null.
The class is rather a hack. Can be restructured to dump debug outputs at runtime.
- Author:
- heinrich
Method Summary |
void |
analyse()
|
static void |
main(java.lang.String[] args)
|
java.lang.String |
showSubObject(java.lang.String name,
java.lang.Object c)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectPrinter
public ObjectPrinter(java.io.File z)
ObjectPrinter
public ObjectPrinter(java.lang.Object c)
main
public static void main(java.lang.String[] args)
analyse
public void analyse()
showSubObject
public java.lang.String showSubObject(java.lang.String name,
java.lang.Object c)