Interface ToStringTreeAppender
An appender for use in
ToStringTreeAppendable
.-
Method Summary
Modifier and TypeMethodDescriptionAppends a nested, named attribute.endList()
Ends a nested list.Ends a nested object.Starts a nested, unnamed list.Starts a nested, named object.Starts a nested, unnamed object.startObject
(String name) Starts a nested, named object.Appends a nested, unnamed value.
-
Method Details
-
attribute
Appends a nested, named attribute.- Parameters:
name
- The name of the attribute to append.value
- The value of the attribute to append.- Returns:
this
, for method chaining.
-
value
Appends a nested, unnamed value.- Parameters:
value
- The value to append.- Returns:
this
, for method chaining.
-
startObject
ToStringTreeAppender startObject()Starts a nested, unnamed object.- Returns:
this
, for method chaining.
-
startObject
Starts a nested, named object.- Parameters:
name
- The name of the object (type, ...).- Returns:
this
, for method chaining.
-
endObject
ToStringTreeAppender endObject()Ends a nested object.- Returns:
this
, for method chaining.
-
startList
ToStringTreeAppender startList()Starts a nested, unnamed list.- Returns:
this
, for method chaining.
-
startList
Starts a nested, named object.- Parameters:
name
- The name of the list (type, ...).- Returns:
this
, for method chaining.
-
endList
ToStringTreeAppender endList()Ends a nested list.- Returns:
this
, for method chaining.
-