public static class ToString.Style extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ToString.Style.VisibleLevel |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
arrayValSep
default: ,
|
boolean |
className
Print the class name at all ? default: true
|
java.lang.String |
endArray
default: }
|
java.lang.String |
endContent
The end of the string after the object classname and
identity reference.
|
java.lang.String |
endString
The end of the entire string.
|
boolean |
expandArrays
Expand array values, default: false.
|
java.lang.String |
fieldAndValSep
default: =
|
boolean |
fieldName
Print the field name ? default: true.
|
java.lang.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).
|
java.lang.String |
startArray
default: {
|
java.lang.String |
startContent
The start of the string after the object classname and
identity reference.
|
java.lang.String |
startString
The start of the entire string.
|
Constructor and Description |
---|
Style() |
Modifier and Type | Method and Description |
---|---|
void |
ignoreFieldName(java.lang.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).
|
java.lang.String |
toString() |
public java.lang.String startString
public java.lang.String endString
public java.lang.String startContent
public java.lang.String endContent
public java.lang.String fieldAndValSep
public java.lang.String fieldSep
public java.lang.String startArray
public java.lang.String endArray
public java.lang.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(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object