Package org.jruby.ast.visitor

Provide the infrastructure to apply the visitor pattern to the tree of nodes produced by compiling a ruby script.

See:
          Description

Interface Summary
NodeVisitor Visitor interface to be implemented by visitors of the jRuby AST.
 

Class Summary
AbstractVisitor This visitor calls by default the return visitNode method for each visited Node.
DefaultIteratorVisitor Default iterator visitor.
 

Package org.jruby.ast.visitor Description

Provide the infrastructure to apply the visitor pattern to the tree of nodes produced by compiling a ruby script. The Visitor pattern used here is slightly modified in that it uses a specific iterating visitor to reify the tree navigation. This is important since due to the different semantic of each node several meaningfull navigation can be implemented.



Copyright © 2002-2007 JRuby Team. All Rights Reserved.