org.tritonus.saol.compiler
Class PrintWalker

java.lang.Object
  extended by DepthFirstAdapter
      extended by org.tritonus.saol.compiler.PrintWalker

public class PrintWalker
extends DepthFirstAdapter

Simple AST walker. This is simple Abstract Syntax Tree walker which will visit each of the nodes and print on standard output the name of particular node visited. This class can be very usefull while testing the tree structure for a given input. Check PrintTree class.


Constructor Summary
PrintWalker()
           
 
Method Summary
 void defaultCase(Node node)
           
 void defaultIn(Node node)
           
 void defaultOut(Node node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintWalker

public PrintWalker()
Method Detail

defaultIn

public void defaultIn(Node node)

defaultOut

public void defaultOut(Node node)

defaultCase

public void defaultCase(Node node)