toString() styler.
This class is used by ToStringCreator to style toString()
output in a consistent manner according to Spring conventions.
| Modifier and Type | Field and Description |
|---|---|
| private final ValueStyler |
| Access | Constructor and Description |
|---|---|
| public | DefaultToStringStyler(ValueStyler
the ValueStyler to use valueStyler)Create a new DefaultToStringStyler. |
| Modifier and Type | Method and Description |
|---|---|
| protected final ValueStyler | |
| public void | styleEnd(StringBuilder
the buffer to print to buffer, Object the object to style o)Implements org. toString()'ed object after it's fields are styled.
|
| public void | styleField(StringBuilder
the buffer to print to buffer, String the name of the field fieldName, Object the field value value)Implements org. |
| protected void | |
| public void | styleFieldSeparator(StringBuilder
the buffer to print to buffer)Implements org. |
| protected void | |
| private void | |
| public void | styleStart(StringBuilder
the buffer to print to buffer, Object the object to style obj)Implements org. toString()'ed object before its fields are styled.
|
| public void | styleValue(StringBuilder
the buffer to print to buffer, Object the field value value)Implements org. |
| valueStyler | back to summary |
|---|---|
| private final ValueStyler valueStyler | |
| DefaultToStringStyler | back to summary |
|---|---|
| public DefaultToStringStyler(ValueStyler valueStyler) Create a new DefaultToStringStyler.
| |
| getValueStyler | back to summary |
|---|---|
| protected final ValueStyler getValueStyler() Return the ValueStyler used by this ToStringStyler. | |
| styleEnd | back to summary |
|---|---|
| public void styleEnd(StringBuilder buffer, Object o) Implements org. Doc from org. Style a
| |
| styleField | back to summary |
|---|---|
| public void styleField(StringBuilder buffer, String fieldName, Object value) Implements org. Doc from org. Style a field value as a string.
| |
| styleFieldEnd | back to summary |
|---|---|
| protected void styleFieldEnd(StringBuilder buffer, String fieldName) | |
| styleFieldSeparator | back to summary |
|---|---|
| public void styleFieldSeparator(StringBuilder buffer) Implements org. Doc from org. Style the field separator.
| |
| styleFieldStart | back to summary |
|---|---|
| protected void styleFieldStart(StringBuilder buffer, String fieldName) | |
| styleIdentityHashCode | back to summary |
|---|---|
| private void styleIdentityHashCode(StringBuilder buffer, Object obj) | |
| styleStart | back to summary |
|---|---|
| public void styleStart(StringBuilder buffer, Object obj) Implements org. Doc from org. Style a
| |
| styleValue | back to summary |
|---|---|
| public void styleValue(StringBuilder buffer, Object value) Implements org. Doc from org. Style the given value.
| |