| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| private static final String | |
| private int | indentWidth
Number of spaces to indent at each level of Object depth |
| private int | maxDepth
Maximum child Object depth to traverse to before issuing circularity error |
| private final StringBuilder | result
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private <E> void | |
| private <E> void | |
| private <K, V> void | |
| public void | appendObject(Object object)
Does a dump of the given Object, using whatever |
| public void | appendObject(Object object, DumpMode
if dumpMode)DumpMode#DEEP then the Object is dumped deeply, if
DumpMode#TO_STRING then the Object's toString() is called,
if DumpMode#IGNORE then nothing happens.Does a dump of the given Object using the given |
| private void | |
| private void | |
| private <E> void | |
| public static String | dumpObject(Object object, DumpMode dumpMode)
Convenience method to do a |
| private DumpMode | getElementDumpMode(Object
Object being dumped object, DumpMode DumpMode currently in operation, used if nothing is specified
for the Object's class or if the Object is null. currentDumpMode)Works out the most appropriate |
| public int | |
| public int | |
| private void | |
| public void | |
| public void |
| DEFAULT_INDENT_WIDTH | back to summary |
|---|---|
| public static final int DEFAULT_INDENT_WIDTH | |
| DEFAULT_MAX_DEPTH | back to summary |
|---|---|
| public static final int DEFAULT_MAX_DEPTH | |
| EMPTY | back to summary |
|---|---|
| private static final String EMPTY | |
| indentWidth | back to summary |
|---|---|
| private int indentWidth Number of spaces to indent at each level of Object depth | |
| maxDepth | back to summary |
|---|---|
| private int maxDepth Maximum child Object depth to traverse to before issuing circularity error | |
| result | back to summary |
|---|---|
| private final StringBuilder result
| |
| ObjectDumper | back to summary |
|---|---|
| public ObjectDumper(StringBuilder result) | |
| appendArray | back to summary |
|---|---|
| private void appendArray(Object[] array, DumpMode dumpMode, int depth) | |
| appendCollection | back to summary |
|---|---|
| private <E> void appendCollection(Collection<E> collection, DumpMode dumpMode, int depth) | |
| appendList | back to summary |
|---|---|
| private <E> void appendList(List<E> list, DumpMode dumpMode, int depth) | |
| appendMap | back to summary |
|---|---|
| private <K, V> void appendMap(Map<K, V> map, DumpMode dumpMode, int depth) | |
| appendObject | back to summary |
|---|---|
| public void appendObject(Object object) Does a dump of the given Object, using whatever | |
| appendObject | back to summary |
|---|---|
| public void appendObject(Object object, DumpMode dumpMode) Does a dump of the given Object using the given
| |
| appendObject | back to summary |
|---|---|
| private void appendObject(Object object, DumpMode dumpMode, int depth) | |
| appendObjectDeep | back to summary |
|---|---|
| private void appendObjectDeep(Object object, int depth) | |
| appendSet | back to summary |
|---|---|
| private <E> void appendSet(Set<E> set, DumpMode dumpMode, int depth) | |
| dumpObject | back to summary |
|---|---|
| public static String dumpObject(Object object, DumpMode dumpMode) Convenience method to do a | |
| getElementDumpMode | back to summary |
|---|---|
| private DumpMode getElementDumpMode(Object object, DumpMode currentDumpMode) Works out the most appropriate | |
| getIndentWidth | back to summary |
|---|---|
| public int getIndentWidth() | |
| getMaxDepth | back to summary |
|---|---|
| public int getMaxDepth() | |
| makeIndent | back to summary |
|---|---|
| private void makeIndent(int depth) | |
| setIndentWidth | back to summary |
|---|---|
| public void setIndentWidth(int indentWidth) | |
| setMaxDepth | back to summary |
|---|---|
| public void setMaxDepth(int maxDepth) | |