hw4
Class DumpNodeVisitor

java.lang.Object
  extended byhw3.ReflectiveVisitor
      extended byhw3.NodeVisitor
          extended byhw4.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 hw3.NodeVisitor
level, ps
 
Fields inherited from class hw3.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 hw3.NodeVisitor
err, err, out, out, setPrintStream, visitChildren
 
Methods inherited from class hw3.ReflectiveVisitor
dispatch, getBestMethodFor, perform, performVisit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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