NodePrinter (Groovy 5.0.6)
Description: declaration: package: groovy.util, class: NodePrinter

Package groovy.util

# Class NodePrinter

java.lang.Object
groovy.util.NodePrinter

public class NodePrinter extends Object
A helper class for creating nested trees of data

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected final IndentPrinter`
  `out`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NodePrinter()`
  `NodePrinter(IndentPrinter out)`
  `NodePrinter(PrintWriter out)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `print(Node node)`
  `protected void`
  `printAttributes(Map attributes)`
  `protected void`
  `printList(List list)`
  `protected void`
  `printName(Node node)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### out

    protected final IndentPrinter out

- ## Constructor Details

  - ### NodePrinter

    public NodePrinter()

  - ### NodePrinter

    public NodePrinter(PrintWriter out)

  - ### NodePrinter

    public NodePrinter(IndentPrinter out)

- ## Method Details

  - ### print

    public void print(Node node)

  - ### printName

    protected void printName(Node node)

  - ### printList

    protected void printList(List list)

  - ### printAttributes

    protected void printAttributes(Map attributes)