|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfc.util.ToString.Style
public static class ToString.Style
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 | |
---|---|
static class |
ToString.Style.VisibleLevel
|
Field Summary | |
---|---|
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 Summary | |
---|---|
ToString.Style()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ToString.Style()
Method Detail |
---|
public void ignoreFieldName(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |