public class PrettyPrinter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
PrettyPrinter.ObjectPrinter
Represents a generic object printer.
|
Modifier and Type | Field and Description |
---|---|
static int |
RECURSE_DEPTH
How far we will recurse.
|
Constructor and Description |
---|
PrettyPrinter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
printObject(java.lang.Object object)
Print the content of an object.
|
static java.lang.String |
printObject(java.lang.Object object,
java.lang.Class<?> start,
java.lang.Class<?> stop)
Print the content of an object.
|
static java.lang.String |
printObject(java.lang.Object object,
java.lang.Class<?> start,
java.lang.Class<?> stop,
int hierachyDepth)
Print the content of an object.
|
static java.lang.String |
printObject(java.lang.Object object,
java.lang.Class<?> start,
java.lang.Class<?> stop,
int hierachyDepth,
PrettyPrinter.ObjectPrinter printer)
Print the content of an object.
|
public static final int RECURSE_DEPTH
public static java.lang.String printObject(java.lang.Object object) throws java.lang.IllegalAccessException
object
- - the object to serialize.java.lang.IllegalAccessException
public static java.lang.String printObject(java.lang.Object object, java.lang.Class<?> start, java.lang.Class<?> stop) throws java.lang.IllegalAccessException
object
- - the object to serialize.stop
- - superclass that will stop the process.java.lang.IllegalAccessException
public static java.lang.String printObject(java.lang.Object object, java.lang.Class<?> start, java.lang.Class<?> stop, int hierachyDepth) throws java.lang.IllegalAccessException
object
- - the object to serialize.stop
- - superclass that will stop the process.java.lang.IllegalAccessException
public static java.lang.String printObject(java.lang.Object object, java.lang.Class<?> start, java.lang.Class<?> stop, int hierachyDepth, PrettyPrinter.ObjectPrinter printer) throws java.lang.IllegalAccessException
object
- - the object to serialize.stop
- - superclass that will stop the process.hierachyDepth
- - maximum recursion level.printer
- - a generic object printer.java.lang.IllegalAccessException