Interface ToStringTreeAppendable
- All Known Implementing Classes:
AbstractProjectionDefinition
,ConstantProjectionDefinition
,DistanceProjectionDefinition
,DistanceProjectionDefinition.MultiValued
,DistanceProjectionDefinition.SingleValued
,DistanceProjectionDefinition.WrappedValued
,FieldProjectionDefinition
,FieldProjectionDefinition.AccumulatedValued
,FieldProjectionDefinition.MultiValued
,FieldProjectionDefinition.SingleValued
,ObjectProjectionDefinition
,ObjectProjectionDefinition.MultiValued
,ObjectProjectionDefinition.SingleValued
,ObjectProjectionDefinition.WrappedValued
Implemented by classes that can be rendered to a string representing a tree.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendTo
(ToStringTreeAppender appender) Appends information aboutthis
to the givenappender
.default String
A reasonable implementation ofObject.toString()
relying onappendTo(ToStringTreeAppender)
.
-
Method Details
-
appendTo
Appends information aboutthis
to the givenappender
.WARNING: This generally shouldn't be called directly, as
ToStringTreeAppender
will automatically call this method forToStringTreeAppendable
values passed toToStringTreeAppender.attribute(String, Object)
/ToStringTreeAppender.value(Object)
.Implementations should assume that calls to
ToStringTreeAppender.startObject()
/ToStringTreeAppender.endObject()
forthis
are handled by the caller.- Parameters:
appender
- AToStringTreeAppender
.
-
toStringTree
A reasonable implementation ofObject.toString()
relying onappendTo(ToStringTreeAppender)
.- Returns:
- A string representation of the given
appendable
.
-