public class _NSObjectUtilities extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static String dumpObjectAsString(Object o, boolean showInterfaces, boolean showConstructors, boolean showFields, boolean getFields, boolean showMethods, boolean getMethodsJava, boolean getMethodsNext) throws IOException
o
- object to dumpshowInterfaces
- - will show implemented interfacesshowConstructors
- - will show available constructorsshowFields
- - will show ivarsgetFields
- - will attempt to get ivar values (only if showFields)showMethods
- - will show method signaturesgetMethodsJava
- - 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)IOException
- if something goes wrongCopyright © 2002 – 2024 Project Wonder.