Class NodePrinter

java.lang.Object
org.codehaus.groovy.antlr.treewalker.VisitorAdapter
org.codehaus.groovy.antlr.treewalker.NodePrinter
All Implemented Interfaces:
Visitor

public class NodePrinter
extends VisitorAdapter
A simple antlr AST visitor that outputs the tokenName of each node in a pseudo xml style.
  • Constructor Details

    • NodePrinter

      public NodePrinter​(java.io.PrintStream out, java.lang.String[] tokenNames)
      A visitor that prints a pseudo xml output to the supplied PrintStream
      Parameters:
      out - supplied PrintStream to output nodes to
      tokenNames - an array of token names to use
  • Method Details