com.webobjects.monitor._private
Class _NSObjectUtilities
java.lang.Object
com.webobjects.monitor._private._NSObjectUtilities
public class _NSObjectUtilities
- extends Object
|
Method Summary |
static String |
dumpObjectAsString(Object o,
boolean showInterfaces,
boolean showConstructors,
boolean showFields,
boolean getFields,
boolean showMethods,
boolean getMethodsJava,
boolean getMethodsNext)
These methods will eventually do an exhaustive dump of the Object in question using Reflection APIs. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dumpObjectAsString
public static String dumpObjectAsString(Object o,
boolean showInterfaces,
boolean showConstructors,
boolean showFields,
boolean getFields,
boolean showMethods,
boolean getMethodsJava,
boolean getMethodsNext)
throws IOException
- These methods will eventually do an exhaustive dump of the Object in question using Reflection APIs.
This is very slow, and outputs fully qualified _everything_.
These are considered private API, even though they are publicly visible.
Also note that this may alter the state of the object to be dumped - it is _not_ garanteed to be free of side-effects.
showInterfaces - will show implemented interfaces
showConstructors - will show available constructors
showFields - will show ivars
getFields - will attempt to get ivar values (only if showFields)
showMethods - will show method signatures
getMethodsJava - will attempt to invoke all methods starting with "get" and taking no arguments (only if showMethods)
getMethodsNext - will attempt to invoke all methods with the same name as an ivar (ignoring starting '_') and taking no arguments (only if showMethods)
- Throws:
IOException
Copyright © 2002 – 2011 Project Wonder.