public class BasicPrettyPrinter extends Object implements PrettyPrinter
| Modifier and Type | Field and Description |
|---|---|
protected ObjectTrace |
trace |
| Constructor and Description |
|---|
BasicPrettyPrinter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
copy() |
protected boolean |
hasCustomToStringMethod(Class c)
If the definition of toString is not from java.lang.Object or any class in the
java.util.* package then we consider it a custom implementation in which case
we'll use it instead of introspecting the class.
|
protected void |
internalPrettify(Object o) |
String |
prettify(Object o)
Prettifies the representation of an Object as a String.
|
protected void |
prettifyComplexType(Object o) |
protected ObjectTrace trace
public String prettify(Object o)
prettify in interface PrettyPrinterprotected void internalPrettify(Object o)
protected void prettifyComplexType(Object o)
protected boolean hasCustomToStringMethod(Class c)
c - The class to check for a custom toString definition.public Object copy()
copy in interface PrettyPrinterCopyright © 2015 The Apache Software Foundation. All rights reserved.