Clover coverage report - PMD - 3.9 Coverage timestamp: Tue Dec 19 2006 09:38:44 EST FRAMES NO FRAMES |
file stats: | LOC: | 39 |  | Methods: | 3
| NCLOC: | 25 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
DataFlowFacade.java | - | 66.7% | 66.7% | 66.7% |

1 |  | /*
2 |  | * Created on 10.07.2004
3 |  | */
4 |  | package net.sourceforge.pmd.dfa;
5 |  |
6 |  | import net.sourceforge.pmd.ast.ASTCompilationUnit;
7 |  | import net.sourceforge.pmd.ast.ASTConstructorDeclaration;
8 |  | import net.sourceforge.pmd.ast.ASTMethodDeclaration;
9 |  | import net.sourceforge.pmd.ast.JavaParserVisitorAdapter;
10 |  | import net.sourceforge.pmd.dfa.variableaccess.VariableAccessVisitor;
11 |  |
12 |  | /**
13 |  | * @author raik
14 |  | * <p/>
15 |  | * TODO What about initializers? This only processes methods and constructors
16 |  | */
17 |  | public class DataFlowFacade extends JavaParserVisitorAdapter {
18 |  |
19 |  | private StatementAndBraceFinder sbf;
20 |  | private VariableAccessVisitor vav;
21 |  |
22 | 43 | public void initializeWith(ASTCompilationUnit node) {
23 | 43 | sbf = new StatementAndBraceFinder();
24 | 43 | vav = new VariableAccessVisitor();
25 | 43 | node.jjtAccept(this, null);
26 |  | }
27 |  |
28 | 43 | public Object visit(ASTMethodDeclaration node, Object data) {
29 | 43 | sbf.buildDataFlowFor(node);
30 | 43 | vav.compute(node);
31 | 43 | return data;
32 |  | }
33 |  |
34 | 0 | public Object visit(ASTConstructorDeclaration node, Object data) {
35 | 0 | sbf.buildDataFlowFor(node);
36 | 0 | vav.compute(node);
37 | 0 | return data;
38 |  | }
39 |  | }