Class ToString.Style
java.lang.Object
fc.util.ToString.Style
- Enclosing class:
ToString
Drives the formatting behavior. Behavior different than
the defaults can be achieved by instantiating a new object
and setting it's properties appropriately.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptiondefault: ,boolean
Print the class name at all ? default: truedefault: }The end of the string after the object classname and identity reference.The end of the entire string.boolean
Expand array values, default: false.default: =boolean
Print the field name ? default: true.default: ,boolean
print full class name ? default: falseboolean
print indentity hash code for the object ? default: trueboolean
print field names when using reflection ? default: trueboolean
Reflects static variables.boolean
Prints the superclass's variables when using reflection ? default: falseDefault access level when using reflection (fields with this or looser access will be printed).default: {The start of the string after the object classname and identity reference.The start of the entire string. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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).toString()
-
Field Details
-
startString
The start of the entire string. default to empty: "" -
endString
-
startContent
The start of the string after the object classname and identity reference. default: [ -
endContent
The end of the string after the object classname and identity reference. default: ] -
fieldAndValSep
default: = -
fieldSep
-
startArray
default: { -
endArray
-
arrayValSep
default: , -
expandArrays
Expand array values, default: false. invalid input: '<'bNote: expansion only works when arrays are manually added using one of the append(..) methods, not when using reflection. -
fieldName
Print the field name ? default: true. If field names are not printed, then neither is theinvalid reference
#FieldAndValSep
-
className
Print the class name at all ? default: true -
fullClassName
print full class name ? default: false -
idHashCode
print indentity hash code for the object ? default: true -
reflectFieldName
print field names when using reflection ? default: true -
reflectSuperClass
Prints the superclass's variables when using reflection ? default: false -
reflectStatics
Reflects static variables. By default this is false since statics are not part of the object's instance-state. -
reflectVisibleLevel
Default access level when using reflection (fields with this or looser access will be printed). default: PRIVATE (EVERYTHING IS PRINTED)
-
-
Constructor Details
-
Style
public Style()
-
-
Method Details
-
ignoreFieldName
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). Use this method to add as many field names as needed. -
toString
-