View Javadoc

    1   /**
    2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
    3    */
    4   package net.sourceforge.pmd.typeresolution;
    5
    6   import net.sourceforge.pmd.ast.ASTCompilationUnit;
    7   import net.sourceforge.pmd.ast.JavaParserVisitorAdapter;
    8
    9   /**
    10   * @author Allan Caplan
    11   */
    12  public class TypeResolutionFacade extends JavaParserVisitorAdapter {
    13
    14      public void initializeWith(ClassLoader classLoader, ASTCompilationUnit node) {
    15          ClassTypeResolver classTypeResolver = new ClassTypeResolver(classLoader);
    16          node.setClassTypeResolver(classTypeResolver);
    17          node.jjtAccept(classTypeResolver, null);
    18      }
    19
    20  }