public class Show
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
InitialIndentation
The initial indentation.
|
int |
maxDepth
Show will only go down up to this maximum depth of object
structure.
|
java.util.IdentityHashMap<java.lang.Object,java.lang.Integer> |
objIDs
Mapping of seen objects to unique numbers.
|
static java.util.Map<java.lang.Class,java.util.List<java.lang.String>> |
showFilter
Let C be a class.
|
static java.util.List<java.lang.Class> |
veryCompactShow
When a class C is listed here, then when showing an instance of
C we will only show its name (its internal state will not be
shown at all).
|
Constructor and Description |
---|
Show() |
Show(int initialIndent,
int maxdepth)
Create a new Shower object, with the specified maximum show
depth and initial indentation.
|
Modifier and Type | Method and Description |
---|---|
protected static java.util.List<java.lang.reflect.Field> |
getAllNonStaticFields(java.lang.Class C)
Get ALL fields of a class.
|
static void |
main(java.lang.String[] args) |
void |
resetContinousNumbering()
Reset the continous numbering.
|
static java.lang.String |
show(java.lang.Object o)
Show an object, with default depth and initial indentation.
|
static java.lang.String |
show(java.lang.Object o,
int indent,
int maxDepth)
Show the object o.
|
java.lang.String |
showWithContNum(java.lang.Object o)
Show the object o.
|
public java.util.IdentityHashMap<java.lang.Object,java.lang.Integer> objIDs
public int maxDepth
public int InitialIndentation
public static java.util.Map<java.lang.Class,java.util.List<java.lang.String>> showFilter
Add entries to this variable to have a class with lots of fields shown more compactly.
public static java.util.List<java.lang.Class> veryCompactShow
Add classes to this variable to surpress showing their state.
public Show()
public Show(int initialIndent, int maxdepth)
public java.lang.String showWithContNum(java.lang.Object o)
public void resetContinousNumbering()
public static java.lang.String show(java.lang.Object o, int indent, int maxDepth)
indent
- Initial indentiation.public static java.lang.String show(java.lang.Object o)
protected static java.util.List<java.lang.reflect.Field> getAllNonStaticFields(java.lang.Class C)
public static void main(java.lang.String[] args)