Interface TreeRenderer

All Known Implementing Classes:
TextTreeRenderer, XmlTreeRenderer

public interface TreeRenderer
An object that can export a tree to an external text format.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Appends the subtree rooted at the given node on the provided output writer.
  • Method Details

    • renderSubtree

      void renderSubtree(Node node, Appendable out) throws IOException
      Appends the subtree rooted at the given node on the provided output writer. The implementation is free to filter out some nodes from the subtree.
      Parameters:
      node - Node to render
      out - Object onto which the output is appended
      Throws:
      IOException - If an IO error occurs while appending to the output