org.tritonus.saol.compiler
Class PrintWalker
java.lang.Object
DepthFirstAdapter
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintWalker
public PrintWalker()
defaultIn
public void defaultIn(Node node)
defaultOut
public void defaultOut(Node node)
defaultCase
public void defaultCase(Node node)