类 DefaultToStringStyler
java.lang.Object
cn.taketoday.core.style.DefaultToStringStyler
- 所有已实现的接口:
ToStringStyler
Default
toString() styler.
This class is used by ToStringBuilder to style toString()
output in a consistent manner according to conventions.
- 从以下版本开始:
- 4.0
- 作者:
- Keith Donald, Juergen Hoeller
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected final ValueStylerReturn the ValueStyler used by this ToStringStyler.voidstyleEnd(StringBuilder buffer, Object o) Style atoString()'ed object after it's fields are styled.voidstyleField(StringBuilder buffer, String fieldName, Object value) Style a field value as a string.protected voidstyleFieldEnd(StringBuilder buffer, String fieldName) voidstyleFieldSeparator(StringBuilder buffer) Style the field separator.protected voidstyleFieldStart(StringBuilder buffer, String fieldName) voidstyleStart(StringBuilder buffer, Object obj) Style atoString()'ed object before its fields are styled.voidstyleValue(StringBuilder buffer, Object value) Style the given value.
-
构造器详细资料
-
DefaultToStringStyler
Create a new DefaultToStringStyler.- 参数:
valueStyler- the ValueStyler to use
-
-
方法详细资料
-
getValueStyler
Return the ValueStyler used by this ToStringStyler. -
styleStart
从接口复制的说明:ToStringStylerStyle atoString()'ed object before its fields are styled.- 指定者:
styleStart在接口中ToStringStyler- 参数:
buffer- the buffer to print toobj- the object to style
-
styleEnd
从接口复制的说明:ToStringStylerStyle atoString()'ed object after it's fields are styled.- 指定者:
styleEnd在接口中ToStringStyler- 参数:
buffer- the buffer to print too- the object to style
-
styleField
从接口复制的说明:ToStringStylerStyle a field value as a string.- 指定者:
styleField在接口中ToStringStyler- 参数:
buffer- the buffer to print tofieldName- the he name of the fieldvalue- the field value
-
styleFieldStart
-
styleFieldEnd
-
styleValue
从接口复制的说明:ToStringStylerStyle the given value.- 指定者:
styleValue在接口中ToStringStyler- 参数:
buffer- the buffer to print tovalue- the field value
-
styleFieldSeparator
从接口复制的说明:ToStringStylerStyle the field separator.- 指定者:
styleFieldSeparator在接口中ToStringStyler- 参数:
buffer- the buffer to print to
-