- All Superinterfaces:
Stringable
,StringSource
An
Stringable
sub-interface that traverses a tree of objects, adding information to an AsStringIndenter
object as it goes. An AsStringIndenter
handles string indenting, directs recursion and
performs reflection on fields and methods that are tagged with the annotation @KivaKitIncludeProperty
.
The method asString(Format, AsStringIndenter)
uses the given AsStringIndenter
object to determine if
it should recurse or not as well as to perform labeling and indentation of text lines. The asString()
implementation simply formats this object with a AsStringIndenter
specifying a maximum of 8 levels.
When the traversal is complete, the AsStringIndenter
object yields an indented debug string.
- Author:
- jonathanl (shibo)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.telenav.kivakit.interfaces.string.Stringable
Stringable.Format
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
asString()
default String
asString
(Stringable.Format format) default AsStringIndenter
asString
(Stringable.Format format, AsStringIndenter indenter) Adds structured information about this object to the givenAsStringIndenter
object
-
Method Details
-
asString
- Specified by:
asString
in interfaceStringable
- Specified by:
asString
in interfaceStringSource
- Returns:
- The string value