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.symboltable;
5   
6   import net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit;
7   
8   public class SymbolFacade {
9       public void initializeWith(ASTCompilationUnit node) {
10          initializeWith(SymbolFacade.class.getClassLoader(), node);
11      }
12      public void initializeWith(ClassLoader classLoader, ASTCompilationUnit node) {
13          ScopeAndDeclarationFinder sc = new ScopeAndDeclarationFinder(classLoader);
14          node.jjtAccept(sc, null);
15          OccurrenceFinder of = new OccurrenceFinder();
16          node.jjtAccept(of, null);
17      }
18  }