com.ibm.wala.cast.java.translator.polyglot
Class ASTTraverser

java.lang.Object
  extended by com.ibm.wala.cast.java.translator.polyglot.ASTTraverser

public class ASTTraverser
extends java.lang.Object

Wrapper for the logic (nasty cascaded instanceof tests) necessary to visit a Polyglot AST and dispatch to the appropriate TranslatingVisitor methods for each AST node type.


Constructor Summary
protected ASTTraverser()
           
 
Method Summary
static CAstNode visit(polyglot.ast.Node n, TranslatingVisitor tv, PolyglotJava2CAstTranslator.WalkContext wc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTTraverser

protected ASTTraverser()
Method Detail

visit

public static CAstNode visit(polyglot.ast.Node n,
                             TranslatingVisitor tv,
                             PolyglotJava2CAstTranslator.WalkContext wc)