View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.java.typeresolution;
5   
6   import net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit;
7   import net.sourceforge.pmd.lang.java.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  }