public class PrettyPrinter extends 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 String |
printObject(Object object)
Print the contents of an object.
|
static String |
printObject(Object object,
Class<?> start,
Class<?> stop)
Print the contents of an object.
|
static String |
printObject(Object object,
Class<?> start,
Class<?> stop,
int hierachyDepth)
Print the contents of an object.
|
static String |
printObject(Object object,
Class<?> start,
Class<?> stop,
int hierachyDepth,
PrettyPrinter.ObjectPrinter printer)
Print the contents of an object.
|
public static final int RECURSE_DEPTH
public static String printObject(Object object) throws IllegalAccessException
object - - the object to serialize.IllegalAccessException - If the object is nullpublic static String printObject(Object object, Class<?> start, Class<?> stop) throws IllegalAccessException
object - - the object to serialize.start - - class to start at.stop - - superclass that will stop the process.IllegalAccessException - If the object is nullpublic static String printObject(Object object, Class<?> start, Class<?> stop, int hierachyDepth) throws IllegalAccessException
object - - the object to serialize.start - - class to start at.stop - - superclass that will stop the process.hierachyDepth - - maximum recursion level.IllegalAccessException - If the object is nullpublic static String printObject(Object object, Class<?> start, Class<?> stop, int hierachyDepth, PrettyPrinter.ObjectPrinter printer) throws IllegalAccessException
object - - the object to serialize.start - - class to start at.stop - - superclass that will stop the process.hierachyDepth - - maximum recursion level.printer - - a generic object printer.IllegalAccessException - If the object is nullCopyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.