|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.futureshocked.debug.StaticDebugger
public class StaticDebugger
StaticDebugger will print out all the information about an Object
passed into it, including private fields with the help of reflection.
It can use recursion to call itself on any objects that are members of the
first object passed in, etc etc.
Field Summary | |
---|---|
static int |
defaultMaxDepth
The default maximum recursion depth for printing. |
Constructor Summary | |
---|---|
StaticDebugger()
|
Method Summary | |
---|---|
static void |
printDebugInformation(java.lang.Object o)
Prints the members of an object, with default recursion depth. |
static void |
printDebugInformation(java.lang.Object o,
int maxDepth)
Prints the members of an object, with user specified max recursion depth. |
private static void |
printDebugInformation(java.lang.Object o,
int maxDepth,
int currentDepth)
Private recurisve method that does the actual displaying of the Object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int defaultMaxDepth
Constructor Detail |
---|
public StaticDebugger()
Method Detail |
---|
public static void printDebugInformation(java.lang.Object o)
o
- Object to print out.public static void printDebugInformation(java.lang.Object o, int maxDepth)
o
- Object to print out.maxDepth
- Maximum recursive depth to descend.private static void printDebugInformation(java.lang.Object o, int maxDepth, int currentDepth)
o
- Object to print out.maxDepth
- Maximum depth to descend.currentDepth
- The current recursive depth.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |