Interface ClassPrinter.Node
- All Known Subinterfaces:
ClassPrinter.LeafNode
,ClassPrinter.ListNode
,ClassPrinter.MapNode
- Enclosing class:
ClassPrinter
public static sealed interface ClassPrinter.Node
permits ClassPrinter.LeafNode, ClassPrinter.ListNode, ClassPrinter.MapNode
Named, traversable, and printable node parent.
- Since:
- 24
-
Method Summary
Modifier and TypeMethodDescriptionname()
Printable name of the node.default void
Prints the node and its sub-tree into JSON format.default void
Prints the node and its sub-tree into XML format.default void
Prints the node and its sub-tree into YAML format.walk()
Walks through the underlying tree.
-
Method Details
-
name
-
walk
Stream<ClassPrinter.Node> walk()Walks through the underlying tree.- Returns:
- ordered stream of nodes
-
toJson
-
toXml
-
toYaml
-