polyglot.visit
Class NodeScrambler.FirstPass

java.lang.Object
  extended bypolyglot.visit.NodeVisitor
      extended bypolyglot.visit.NodeScrambler.FirstPass
Enclosing class:
NodeScrambler

public class NodeScrambler.FirstPass
extends NodeVisitor

Scans throught the AST, create a list of all nodes present, along with the set of parents for each node in the tree. This visitor should be run before the main NodeScrambler visits the tree.


Constructor Summary
NodeScrambler.FirstPass()
           
 
Method Summary
 NodeVisitor enter(Node n)
           
 Node leave(Node old, Node n, NodeVisitor v)
           
 
Methods inherited from class polyglot.visit.NodeVisitor
begin, enter, finish, finish, leave, override, override, toString, visitEdge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeScrambler.FirstPass

public NodeScrambler.FirstPass()
Method Detail

enter

public NodeVisitor enter(Node n)
Overrides:
enter in class NodeVisitor

leave

public Node leave(Node old,
                  Node n,
                  NodeVisitor v)
Overrides:
leave in class NodeVisitor