Package introspector.model.traverse
Class ConsoleTreeSerializer
java.lang.Object
introspector.model.traverse.TxtTreeSerializer
introspector.model.traverse.ConsoleTreeSerializer
- All Implemented Interfaces:
TreeSerializer
A serializer to show a tree in the console
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor of the classConsoleTreeSerializer(boolean allInfo) Constructor of the class -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method is called after the whole tree has been traversedMethods inherited from class introspector.model.traverse.TxtTreeSerializer
afterTraversing, beforeTraversing, beginTraverse, traversing, write
-
Constructor Details
-
ConsoleTreeSerializer
ConsoleTreeSerializer()Constructor of the class -
ConsoleTreeSerializer
public ConsoleTreeSerializer(boolean allInfo) Constructor of the class- Parameters:
allInfo- if all the info in the nodes must be displayed (i.e., toString() method of objects wrapped by nodes)
-
-
Method Details
-
endTraverse
Description copied from interface:TreeSerializerThis method is called after the whole tree has been traversed- Specified by:
endTraversein interfaceTreeSerializer- Overrides:
endTraversein classTxtTreeSerializer- Throws:
IOException- if there is an error writing the tree- See Also:
-