|
1 |
| package net.sourceforge.pmd.sourcetypehandlers; |
|
2 |
| |
|
3 |
| import net.sourceforge.pmd.ast.ASTCompilationUnit; |
|
4 |
| import net.sourceforge.pmd.dfa.DataFlowFacade; |
|
5 |
| import net.sourceforge.pmd.symboltable.SymbolFacade; |
|
6 |
| import net.sourceforge.pmd.typeresolution.TypeResolutionFacade; |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| public abstract class JavaTypeHandler implements SourceTypeHandler { |
|
15 |
| |
|
16 |
5
| public VisitorStarter getDataFlowFacade() {
|
|
17 |
5
| return new VisitorStarter() {
|
|
18 |
5
| public void start(Object rootNode) {
|
|
19 |
5
| new DataFlowFacade().initializeWith((ASTCompilationUnit) rootNode);
|
|
20 |
| } |
|
21 |
| }; |
|
22 |
| } |
|
23 |
| |
|
24 |
1236
| public VisitorStarter getSymbolFacade() {
|
|
25 |
1236
| return new VisitorStarter() {
|
|
26 |
1236
| public void start(Object rootNode) {
|
|
27 |
1236
| new SymbolFacade().initializeWith((ASTCompilationUnit) rootNode);
|
|
28 |
| } |
|
29 |
| }; |
|
30 |
| } |
|
31 |
| |
|
32 |
18
| public VisitorStarter getTypeResolutionFacade() {
|
|
33 |
18
| return new VisitorStarter() {
|
|
34 |
18
| public void start(Object rootNode) {
|
|
35 |
18
| new TypeResolutionFacade().initializeWith((ASTCompilationUnit) rootNode);
|
|
36 |
| } |
|
37 |
| }; |
|
38 |
| } |
|
39 |
| |
|
40 |
| |
|
41 |
| } |