Class DumpNodeVisitor

  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
Constructor Summary
DumpNodeVisitor( 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


public DumpNodeVisitor( ps)
Method Detail


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

defaultVisit in class NodeVisitor