lab8
Class DumpNodeVisitor

java.lang.Object
  extended by lab7.ReflectiveVisitor
      extended by lab7.NodeVisitor
          extended by lab8.DumpNodeVisitor

public class DumpNodeVisitor
extends NodeVisitor

This visitor shows you the AST as-is, node for node, with node types printed out. The number printed is useful as it can help correlate the declaration node for a symbol with references of that symbol.


Field Summary
 
Fields inherited from class lab7.ReflectiveVisitor
debug
 
Constructor Summary
DumpNodeVisitor(java.io.PrintStream ps)
           
 
Method Summary
 void defaultVisit(java.lang.Object o)
          Default visitation if nothing suitable is found
 
Methods inherited from class lab7.NodeVisitor
err, err, out, out, setPrintStream
 
Methods inherited from class lab7.ReflectiveVisitor
dispatch, perform, performVisit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumpNodeVisitor

public DumpNodeVisitor(java.io.PrintStream ps)
Method Detail

defaultVisit

public void defaultVisit(java.lang.Object o)
Description copied from class: NodeVisitor
Default visitation if nothing suitable is found

Overrides:
defaultVisit in class NodeVisitor