public static class ToString.Style extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ToString.Style.VisibleLevel |
Modifier and Type | Field and Description |
---|---|
String |
arrayValSep
default: ,
|
boolean |
className
Print the class name at all ? default: true
|
String |
endArray
default: }
|
String |
endContent
The end of the string after the object classname and
identity reference.
|
String |
endString
The end of the entire string.
|
boolean |
expandArrays
Expand array values, default: false.
|
String |
fieldAndValSep
default: =
|
boolean |
fieldName
Print the field name ? default: true.
|
String |
fieldSep
default: ,
|
boolean |
fullClassName
print full class name ? default: false
|
boolean |
idHashCode
print indentity hash code for the object ? default: true
|
boolean |
reflectFieldName
print field names when using reflection ? default: true
|
boolean |
reflectStatics
Reflects static variables.
|
boolean |
reflectSuperClass
Prints the superclass's variables when using reflection ? default: false
|
ToString.Style.VisibleLevel |
reflectVisibleLevel
Default access level when using reflection (fields with
this or looser access will be printed).
|
String |
startArray
default: {
|
String |
startContent
The start of the string after the object classname and
identity reference.
|
String |
startString
The start of the entire string.
|
Constructor and Description |
---|
Style() |
Modifier and Type | Method and Description |
---|---|
void |
ignoreFieldName(String name)
Case insensitive field names that will be ignored (for example a
public field "foo" may be printed otherwise, but if added to this
list, it would be ignored).
|
String |
toString() |
public String startString
public String startContent
public String endContent
public String fieldAndValSep
public String startArray
public String arrayValSep
public boolean expandArrays
public boolean fieldName
#FieldAndValSep
- only the value of a field
is printed.public boolean className
public boolean fullClassName
public boolean idHashCode
public boolean reflectFieldName
public boolean reflectSuperClass
public boolean reflectStatics
public ToString.Style.VisibleLevel reflectVisibleLevel
public Style()
public void ignoreFieldName(String name)